JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
ExSMPLDisp.cpp
Go to the documentation of this file.
1//
2// ExSMPLDisp.cpp : インプリメンテーション ファイル
3//
4
5#include "MFCBase.h"
6#include "ExSMPLDisp.h"
7
8#include "Graph.h"
9#include "appCallBack.h"
10
11
12#ifdef _DEBUG
13#define new DEBUG_NEW
14#undef THIS_FILE
15static char THIS_FILE[] = __FILE__;
16#endif
17
18
19using namespace jbxwl;
20
21
23// CExSMPLDisp
24
25IMPLEMENT_DYNCREATE(CExSMPLDisp, CExFrame)
26
27
28/*
29CExSMPLDisp::CExSMPLDisp()
30{
31}
32*/
33
34
35//
39
40
41void CExSMPLDisp::displayNew(MSGraph<sWord> vp)
42{
43 if (pApp!=NULL) {
44 copy_MSGraph(vp, msGraph);
45 if (msGraph.gp==NULL) return;
46// for (int i=0; i<msGraph.xs*msGraph.ys*msGraph.zs; i++) {
47// if (msGraph.gp[i]>=EMAXCT) msGraph.gp[i] = -100;
48// }
50 if (!pApp->callMSGraph.isNull()) {
51 pFrame = pApp->TemplateCallBack(this, APP_CALLBACK_2D);
52 CString mesg;
53 mesg.LoadString(IDS_STR_NEXT_QUSTN);
54 MessageBox(mesg, _T(""), MB_OK);
55 //pApp->callMSGraph.mfree();
56 if (!isNull(pFrame->m_hWnd)) pFrame->DestroyWindow();
57 msGraph.init(); // msGraphのデータ(gp)は破棄されているはず
58 }
59 }
60}
61
62
63//
64void CExSMPLDisp::displayNext(MSGraph<sWord> vp)
65{
66// if (pFrame!=NULL) {
67// cat_MSGraph(vp, msGraph);
68//
69// }
70}
71
72
73
74BEGIN_MESSAGE_MAP(CExSMPLDisp, CExFrame)
75 //{{AFX_MSG_MAP(CExSMPLDisp)
76 // メモ - ClassWizard はこの位置にマッピング用のマクロを追加または削除します.
77 //}}AFX_MSG_MAP
78END_MESSAGE_MAP()
79
80
81
82
83// CExSMPLDisp メッセージ ハンドラ
84
static char THIS_FILE[]
MSGraph< sWord > callMSGraph
Definition ExClass.h:53
virtual CExFrame * TemplateCallBack(CExFrame *pfrm, int mode, LPCTSTR title=NULL)
Definition ExClass.h:56
virtual void displayNext(MSGraph< sWord > vp)
virtual void displayNew(MSGraph< sWord > vp)
CExFrame * pFrame
Definition ExSMPLDisp.h:29
CAppCallBack * pApp
Definition ExSMPLDisp.h:28
MSGraph< sWord > msGraph
Definition ExSMPLDisp.h:30
#define IDS_STR_NEXT_QUSTN
Definition resource.h:112