?? mainfrm.cpp
字號:
// mainfrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "client.h"
#include "mainfrm.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_WM_SYSCOMMAND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
CMainFrame::~CMainFrame()
{
}
/////////////////////////////////////////////////////////////////////////////
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainFrame message handlers
//change the outlook of main window at start up
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if(!CFrameWnd::PreCreateWindow(cs))
return FALSE;
cs.style&=~WS_MAXIMIZEBOX;
return TRUE;
}
void CMainFrame::ActivateFrame(int nCmdShow)
{
//change the start up window size
//nCmdShow=SW_MINIMIZE;
CFrameWnd::ActivateFrame(nCmdShow);
}
void CMainFrame::OnSysCommand(UINT nID, LPARAM lParam)
{
/* switch (nID & 0x0fff0) {
case SC_MINIMIZE:
case SC_RESTORE:
case SC_NEXTWINDOW:
case SC_PREVWINDOW:
case SC_TASKLIST:
AfxMessageBox("This is a sample application \nwhich \
can be only display as a icon!\n By Zheng Dengfeng");
MessageBeep(0);
case SC_SIZE:
case SC_MOVE:
return; // (don抰 do anything)
}*/
CFrameWnd::OnSysCommand(nID, lParam);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -