⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.wzd

📁 The programs and applications on this disk have been carefully tested, but are not guaranteed for
💻 WZD
字号:
/////////////////////////////////////////////////////////////////////
// To add flashing text...
/////////////////////////////////////////////////////////////////////

// 1) Start a timer. If in a dialog class, start the timer in the
// OnInitDialog message handler:

	SetTimer(
		1,				// event ID
		250,			// time in milliseconds
		NULL);			// causes a WM_TIMER message to be sent to this window

// 2) Add a WM_TIMER message handler to hide and show the text in question:

void CWzdDialog::OnTimer(UINT nIDEvent) 
{
	if (nIDEvent==1)
	{
		static BOOL t=TRUE;
		m_ctrlStatic.ShowWindow((t=!t)?SW_SHOW:SW_HIDE);
	}

	CDialog::OnTimer(nIDEvent);
}

/////////////////////////////////////////////////////////////////////
// To add flashing dialog or other window...
/////////////////////////////////////////////////////////////////////

// 1) Start a timer as seen above.

// 2) Add a WM_TIMER message handler that uses FlashWindow() to toggle the
// caption bar of that window from active to inactive:

void CWzdDialog::OnTimer(UINT nIDEvent) 
{
	FlashWindow(
		TRUE		// if FALSE, forces caption bar to be active--useful
					//  when flashing stops and you want bar to be active
		);

	CDialog::OnTimer(nIDEvent);
}


/////////////////////////////////////////////////////////////////////
// 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 + -