1 / 2

class YourFrame : public CFrameWnd { public:

Simple GUI Programs with the Microsoft Foundation Classes. CFrameWnd. YourFrame. focus of your effort is here. CWinApp. YourApp. #define WINVER 0x400 // ok for Win2K or later #include <afxwin.h> // MFC header. class YourFrame : public CFrameWnd { public:

Télécharger la présentation

class YourFrame : public CFrameWnd { public:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Simple GUI Programs with the Microsoft Foundation Classes CFrameWnd YourFrame focus of your effort is here CWinApp YourApp #define WINVER 0x400 // ok for Win2K or later #include <afxwin.h> // MFC header class YourFrame : public CFrameWnd { public: YourFrame() { Create( NULL, "Caption" ) ; /*...*/} private: // data and helper functions here protected: // message handlers void OnPaint() { /*...*/ } void OnLButtonDown( UINT flags, CPoint pt ) { /*...*/ } DECLARE_MESSAGE_MAP() } ; BEGIN_MESSAGE_MAP( YourFrame, CFrameWnd ) ON_WM_PAINT() ON_WM_LBUTTONDOWN() END_MESSAGE_MAP() struct YourApp : public CWinApp { virtual BOOL InitInstance() { m_pMainWnd= new YourFrame ; m_pMainWnd->ShowWindow( m_nCmdShow ) ; m_pMainWnd->UpdateWindow() ; return true ; } } ; YourApp yourApp ; NKU CSC 402 Kirby

  2. In VS 2003

More Related