Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. // MainWnd.h: interface for the CMainWnd class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINWND_H__8C77E845_5BA0_4B41_B6E0_619E0BA76E5E__INCLUDED_)
  5. #define AFX_MAINWND_H__8C77E845_5BA0_4B41_B6E0_619E0BA76E5E__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMainWnd : public CWindowImpl<CMainWnd, CWindow, CFrameWinTraits>
  10. {
  11. public:
  12. CMainWnd(void);
  13. ~CMainWnd(void);
  14. BEGIN_MSG_MAP(CMainWnd)
  15. MESSAGE_HANDLER(WM_INITMENUPOPUP, OnInitMenuPopup)
  16. COMMAND_ID_HANDLER(ID_TEST_DOMODAL, OnDoModal)
  17. COMMAND_ID_HANDLER(ID_TEST_DOMODELESS, OnDoModeless)
  18. COMMAND_ID_HANDLER(ID_TEST_CLOSEMODELESS, OnCloseModeless)
  19. COMMAND_ID_HANDLER(ID_TEST_EXIT, OnExit)
  20. END_MSG_MAP()
  21. private:
  22. CComPtr<ITaskSheet> m_spTaskSheet;
  23. virtual void OnFinalMessage(HWND hwnd);
  24. LRESULT OnInitMenuPopup(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  25. LRESULT OnDoModal(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  26. LRESULT OnDoModeless(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  27. LRESULT OnCloseModeless(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  28. LRESULT OnExit(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  29. HRESULT CreateTaskSheet(BOOL bModeless);
  30. HRESULT CloseTaskSheet();
  31. };
  32. #endif // !defined(AFX_MAINWND_H__8C77E845_5BA0_4B41_B6E0_619E0BA76E5E__INCLUDED_)