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.

33 lines
1009 B

  1. #pragma once
  2. #include "atlwin.h"
  3. #include "resource.h"
  4. class CSxApwHostFrame : public ATL::CWindowImpl<CSxApwHostFrame, ATL::CWindow, ATL::CFrameWinTraits>
  5. {
  6. public:
  7. BEGIN_MSG_MAP(CSxApwHostFrame)
  8. MESSAGE_HANDLER( WM_SIZE, OnSize )
  9. COMMAND_ID_HANDLER( IDM_CASCADE, OnTileCascade )
  10. COMMAND_ID_HANDLER( IDM_HORTILE, OnTileHorizontal )
  11. COMMAND_ID_HANDLER( IDM_VERTILE, OnTileVertical )
  12. COMMAND_ID_HANDLER( IDM_APP_EXIT, OnAppExit )
  13. END_MSG_MAP()
  14. CSxApwHostFrame() { }
  15. ~CSxApwHostFrame() { }
  16. void AddMenu();
  17. LRESULT OnSize( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled );
  18. LRESULT OnTileCascade( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  19. LRESULT OnTileHorizontal( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  20. LRESULT OnTileVertical( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  21. LRESULT OnAppExit( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
  22. HWND m_hClient;
  23. };