JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
CExSMPLDisp Class Reference

#include <ExSMPLDisp.h>

Inheritance diagram for CExSMPLDisp:
Collaboration diagram for CExSMPLDisp:

Public Member Functions

 CExSMPLDisp (CAppCallBack *app=NULL)
 
virtual void displayNew (MSGraph< sWord > vp)
 
virtual void displayNext (MSGraph< sWord > vp)
 
- Public Member Functions inherited from CExFrame
virtual void onLButtonDBLClick ()
 
virtual BOOL Create (LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle=WS_CHILD|WS_VISIBLE|WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN, const RECT &rect=rectDefault, CMDIFrameWnd *pParentWnd=NULL, CCreateContext *pContext=NULL)
 
virtual ~CExFrame ()
 
afx_msg LRESULT OnEnterSizeMove (WPARAM wParam, LPARAM lParam)
 
afx_msg LRESULT OnExitSizeMove (WPARAM wParam, LPARAM lParam)
 
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
 
afx_msg void OnSizing (UINT fwSide, LPRECT pRect)
 

Public Attributes

CAppCallBackpApp
 
CExFramepFrame
 
MSGraph< sWord > msGraph
 
- Public Attributes inherited from CExFrame
CString Title
 
CString preTitle
 
int colorMode
 
CExDocumentpDoc
 
CExViewpView
 
CAppCallBackpApp
 
CMultiDocTemplate * pTempl
 
void * anyData
 
CExToolBartoolBar
 
CScrollBar * hScrollBar
 
CScrollBar * vScrollBar
 
bool doneErrorMessage
 
bool cancelOperation
 
bool reSizeMoving
 

Protected Member Functions

virtual ~CExSMPLDisp ()
 
- Protected Member Functions inherited from CExFrame
 CExFrame ()
 

Detailed Description

Definition at line 19 of file ExSMPLDisp.h.

Constructor & Destructor Documentation

◆ CExSMPLDisp()

CExSMPLDisp ( CAppCallBack * app = NULL)
inline

Definition at line 34 of file ExSMPLDisp.h.

34{ pApp=app; pFrame=NULL; msGraph.init();}
CExFrame * pFrame
Definition ExSMPLDisp.h:29
CAppCallBack * pApp
Definition ExSMPLDisp.h:28
MSGraph< sWord > msGraph
Definition ExSMPLDisp.h:30

References CExSMPLDisp::msGraph, CExSMPLDisp::pApp, and CExSMPLDisp::pFrame.

◆ ~CExSMPLDisp()

~CExSMPLDisp ( )
protectedvirtual

Definition at line 36 of file ExSMPLDisp.cpp.

37{
38}

Member Function Documentation

◆ displayNew()

void displayNew ( MSGraph< sWord > vp)
virtual

Definition at line 41 of file ExSMPLDisp.cpp.

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}
MSGraph< sWord > callMSGraph
Definition ExClass.h:53
virtual CExFrame * TemplateCallBack(CExFrame *pfrm, int mode, LPCTSTR title=NULL)
Definition ExClass.h:56
#define IDS_STR_NEXT_QUSTN
Definition resource.h:112

References CAppCallBack::callMSGraph, IDS_STR_NEXT_QUSTN, CExSMPLDisp::msGraph, CExSMPLDisp::pApp, CExSMPLDisp::pFrame, and CAppCallBack::TemplateCallBack().

Here is the call graph for this function:

◆ displayNext()

void displayNext ( MSGraph< sWord > vp)
virtual

Definition at line 64 of file ExSMPLDisp.cpp.

65{
66// if (pFrame!=NULL) {
67// cat_MSGraph(vp, msGraph);
68//
69// }
70}

Member Data Documentation

◆ msGraph

MSGraph<sWord> msGraph

Definition at line 30 of file ExSMPLDisp.h.

Referenced by CExSMPLDisp::CExSMPLDisp(), and CExSMPLDisp::displayNew().

◆ pApp

CAppCallBack* pApp

Definition at line 28 of file ExSMPLDisp.h.

Referenced by CExSMPLDisp::CExSMPLDisp(), and CExSMPLDisp::displayNew().

◆ pFrame

CExFrame* pFrame

Definition at line 29 of file ExSMPLDisp.h.

Referenced by CExSMPLDisp::CExSMPLDisp(), and CExSMPLDisp::displayNew().


The documentation for this class was generated from the following files: