📄 readme.wzd
字号:
/////////////////////////////////////////////////////////////////////
// Modify any class.
/////////////////////////////////////////////////////////////////////
// 1) fill a WNDCLASS structure
WNDCLASS wndclass =
{
// window class styles
CS_DBLCLKS | // convert two mouse clicks into a double click to this window's process
CS_HREDRAW | // send WM_PAINT to window if horizontal size changes
CS_VREDRAW // send WM_PAINT to window if vertical size changes
// CS_GLOBALCLASS | // class is available to all process threads
// CS_OWNDC | // every window created from this class gets its very own device context
// CS_PARENTDC | // device context created for this window allows drawing in parent window too
// CS_NOCLOSE | // disable the close command on the System menu
,
AfxWndProc, // window process for every window created from this class
// (all windows created with MFC use this window process)
0,0, // extra window and class bytes unused in MFC
AfxGetInstanceHandle(), // handle of this application's instance
AfxGetApp()->LoadIcon(IDI_WZD_ICON), // window icon or NULL
// (icon displayed in window caption or in minimized window)
::LoadCursor(NULL,IDC_CROSS), // window class cursor or NULL for default arrow cursor
// (cursor displayed when mouse cursor over a window created with this class)
(HBRUSH)(COLOR_BACKGROUND+1), // background color or NULL for no background erase
// (if NULL, window will not erase background for you)
MAKEINTRESOURCE(IDR_WZD_MENU),
"MyClassName"
};
// 2) register this new WNDCLASS structure
AfxRegisterClass(&wndclass);
// 3) use this new class to create a window
m_wnd.CreateEx(0,"MyClassName","",WS_OVERLAPPEDWINDOW|WS_VISIBLE,300,300,200,100,NULL,NULL);
/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1999 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -