Let's take a look at the OnIdle () Introduction to MSDN:
CWinApp: OnIdle
OnIdleIs called in the default message loop when the application's message queue is
Empty. Use your override to call your own background idle-handler tasks.
Generally, this
Virtual BOOL OnIdle (LONG lCount);Return value: Returns a value other than 0 if you want to receive more idle processing time, or 0 if no more idle time is required.Parameters:
LCount
This parameter is a count value that
Reprint Source: http://blog.csdn.net/tsing_best/article/details/25055707CWinApp::OnIdle virtual BOOL OnIdle(LONG lCount); return value :returns a value other than 0 if you want to receive more idle processing time, or 0 if no more idle time is
Use the OnIdle event to monitor the contents of the Clipboard at any time to change the executable of the pop-up menu.
In the private of Form1. H Plus:
void __fastcall OnIdle (tobject* sender,bool& done);
In Form1. cpp, add:
void __fastcall
Winmain of MFC
Using MFC programmingProgramAt the beginning, the clerk raised the following question: where did my program start? The answer is: the execution starts from winmain. This problem is raised because the winmain () function is not
It should be clear that MFC's message loops (:: GetMessage,::P eekmessage), Message pumps (CWinThread::P umpmessage) and MFC messages are routed between windows in two different things. In an MFC application (the application class is based on
Chapter I. MFC framework
(DX8MFC)
The MFC framework here refers to a game development application framework, of course, you can also write a meeting with your requirements of the MFC framework. If you are familiar with MFC, you can start reading
Schtasks
Schedule regular running of commands and programs or within a specified period of time. Add and delete tasks from a schedule, start and stop tasks as needed, and display and Change scheduled tasks.
Create a new scheduled
MFC full contact (III)
The post that the boss gave me yesterday: Oh, my first SDK-based window wrote a reply: "Why do you need peekmessage? This will make your program occupy all the CPU time that can be occupied. It is inferior to getmessage. When
First, we should understand the message loop (: getmessage,: peekmessage) and message pump (cwinthread: pumpmessage) of MFC) messages in windows are different from messages in MFC. In an MFC application (the application class is inherited based on
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.