12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // MainDlg.cpp : implementation of the CMainDlg class
- //
- /////////////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "MainDlg.h"
-
- CMainDlg::CMainDlg() : SHostWnd(_T("LAYOUT:XML_MAINWND"))
- {
- m_bLayoutInited = FALSE;
- }
- CMainDlg::~CMainDlg()
- {
- }
- int CMainDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
- {
- SetMsgHandled(FALSE);
- return 0;
- }
- BOOL CMainDlg::OnInitDialog(HWND hWnd, LPARAM lParam)
- {
- m_bLayoutInited = TRUE;
- return 0;
- }
- //TODO:消息映射
- void CMainDlg::OnClose()
- {
- CSimpleWnd::DestroyWindow();
- }
- void CMainDlg::OnMaximize()
- {
- SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE);
- }
- void CMainDlg::OnRestore()
- {
- SendMessage(WM_SYSCOMMAND, SC_RESTORE);
- }
- void CMainDlg::OnMinimize()
- {
- SendMessage(WM_SYSCOMMAND, SC_MINIMIZE);
- }
|