📄 readme.wzd
字号:
/////////////////////////////////////////////////////////////////////
// Modify any class
/////////////////////////////////////////////////////////////////////
LPCTSTR lpszClass;
// 1) to create the simpliest window class using default cursor and icon and without background erase
lpszClass = AfxRegisterWndClass( 0 );
// 2) to use this new class
m_wnd1.CreateEx(0,lpszClass,"",WS_OVERLAPPEDWINDOW|WS_VISIBLE,100,100,200,100,NULL,NULL);
// 3) to create a standard window class with custom cursor and icon
lpszClass = AfxRegisterWndClass(
// 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_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
,
::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)
AfxGetApp()->LoadIcon(IDI_WZD_ICON) // window icon or NULL
// (icon displayed in window caption or in minimized window)
);
// 4) to use this new window class
m_wnd2.CreateEx(0,lpszClass,"",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 + -