📄 readme.wzd
字号:
/////////////////////////////////////////////////////////////////////
// Modify any class.
/////////////////////////////////////////////////////////////////////
// 1) to wait till m_bWait is FALSE
MSG msg;
BOOL bIdle=TRUE;
LONG lIdleCount = 0;
CWinApp* pApp=AfxGetApp();
AfxMessageBox("Into wait loop.");
m_bWait=TRUE;
while (m_bWait)
{
// idle loop waiting for messages
while (bIdle && !::PeekMessage(&msg, NULL, NULL, NULL, PM_NOREMOVE))
{
if (!pApp->OnIdle(lIdleCount++)) bIdle = FALSE;
}
// process new messages
do {
// pump messages
pApp->PumpMessage();
// if we're done, let's go...
if (!m_bWait)
break;
// otherwise keep looping
if (pApp->IsIdleMessage(&msg))
{
bIdle = TRUE;
lIdleCount = 0;
}
} while (::PeekMessage(&msg, NULL, NULL, NULL, PM_NOREMOVE));
}
// 2) to make m_bWait FALSE, use the ClassWizard to add a message handler, typically
// for a mouse or key message to indicate the user has done something. Set m_bWait
// to FALSE in that handler.
/////////////////////////////////////////////////////////////////////
// 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 + -