windows-nt/Source/XPSP1/NT/base/win32/fusion/appweek/host2/hostframe.h
2020-09-26 16:20:57 +08:00

34 lines
1,009 B
C++

#pragma once
#include "atlwin.h"
#include "resource.h"
class CSxApwHostFrame : public ATL::CWindowImpl<CSxApwHostFrame, ATL::CWindow, ATL::CFrameWinTraits>
{
public:
BEGIN_MSG_MAP(CSxApwHostFrame)
MESSAGE_HANDLER( WM_SIZE, OnSize )
COMMAND_ID_HANDLER( IDM_CASCADE, OnTileCascade )
COMMAND_ID_HANDLER( IDM_HORTILE, OnTileHorizontal )
COMMAND_ID_HANDLER( IDM_VERTILE, OnTileVertical )
COMMAND_ID_HANDLER( IDM_APP_EXIT, OnAppExit )
END_MSG_MAP()
CSxApwHostFrame() { }
~CSxApwHostFrame() { }
void AddMenu();
LRESULT OnSize( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled );
LRESULT OnTileCascade( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
LRESULT OnTileHorizontal( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
LRESULT OnTileVertical( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
LRESULT OnAppExit( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled );
HWND m_hClient;
};