slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
class YourFrame : public CFrameWnd { public: PowerPoint Presentation
Download Presentation
class YourFrame : public CFrameWnd { public:

Loading in 2 Seconds...

play fullscreen
1 / 2

class YourFrame : public CFrameWnd { public: - PowerPoint PPT Presentation


  • 117 Views
  • Uploaded on

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:

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'class YourFrame : public CFrameWnd { public:' - jena-stevens


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

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