class YourFrame : public CFrameWnd - PowerPoint PPT Presentation

1 / 2
About This Presentation
Title:

class YourFrame : public CFrameWnd

Description:

class YourFrame : public CFrameWnd. public: YourFrame() { Create( NULL, 'Caption' ... void OnLButtonDown( UINT flags, CPoint pt ) { /*...*/ DECLARE_MESSAGE_MAP ... – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 3
Provided by: keving80
Category:

less

Transcript and Presenter's Notes

Title: class YourFrame : public CFrameWnd


1
define WINVER 0x400 // ok for Win2K or
later include ltafxwin.hgt // 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-gtShowWindow(
m_nCmdShow ) m_pMainWnd-gtUpdateWindow()
return true
YourApp yourApp
NKU CSC 402 Kirby
2
In VS 2003
Write a Comment
User Comments (0)
About PowerShow.com