VC++ MFC入门精讲47427.ppt

* * // button3.cpp #include afxwin.h #define IDB_BUTTON 100 // Declare the application class class CButtonApp : public CWinApp { public: virtual BOOL InitInstance(); }; // Create an instance of the application class CButtonApp ButtonApp; // Declare the main window class class CButtonWindow : public CFrameWnd { CButton *button; public: CButtonWindow(); afx_msg void HandleButton(); afx_msg void OnSize(UINT, int, int); DECLARE_MESSAGE_MAP()}; * * // A message handler function void CButtonWindow::HandleButton() { MessageBeep(-1); } // A message handler function void CButton

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档