Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with CListCtrl::InsertColumn Pin
Naveen18-May-06 2:35
Naveen18-May-06 2:35 
AnswerRe: Problem with CListCtrl::InsertColumn Pin
Ganesh_T18-May-06 2:45
Ganesh_T18-May-06 2:45 
GeneralRe: Problem with CListCtrl::InsertColumn Pin
Naveen18-May-06 2:49
Naveen18-May-06 2:49 
QuestionClone(..., PixelFormat) function doesn't change PixelFormat of the image Pin
1980soyo18-May-06 2:12
1980soyo18-May-06 2:12 
Questiona question abt DispatchMessage Pin
namaskaaram18-May-06 1:52
namaskaaram18-May-06 1:52 
AnswerRe: a question abt DispatchMessage Pin
voorugonda prashanth18-May-06 2:02
voorugonda prashanth18-May-06 2:02 
GeneralRe: a question abt DispatchMessage Pin
namaskaaram18-May-06 4:43
namaskaaram18-May-06 4:43 
AnswerRe: a question abt DispatchMessage Pin
NiceNaidu18-May-06 2:44
NiceNaidu18-May-06 2:44 
The system automatically creates a message queue for each thread. If the thread creates one or more windows, a message loop must be provided; this message loop retrieves messages from the thread's message queue and dispatches them to the appropriate window procedures

You create a message loop by using the GetMessage and DispatchMessage functions.

// Start the message loop.
while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
{
if (bRet == -1){
// handle the error and possibly exit
}
else{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
} // Return the exit code to the system.
return msg.wParam;

The DispatchMessage function dispatches a message to a window procedure. It is typically used to dispatch a message retrieved by the GetMessage function


Appu..
"If you judge people, you have no time to love them."
GeneralRe: a question abt DispatchMessage Pin
namaskaaram18-May-06 4:42
namaskaaram18-May-06 4:42 
QuestionHow to extract all text in current command prompt window Pin
kflrei18-May-06 1:33
kflrei18-May-06 1:33 
AnswerRe: How to extract all text in current command prompt window Pin
NiceNaidu18-May-06 2:02
NiceNaidu18-May-06 2:02 
GeneralRe: How to extract all text in current command prompt window Pin
kflrei20-May-06 23:06
kflrei20-May-06 23:06 
AnswerRe: How to extract all text in current command prompt window Pin
Eytukan18-May-06 4:27
Eytukan18-May-06 4:27 
GeneralRe: How to extract all text in current command prompt window Pin
kflrei20-May-06 23:08
kflrei20-May-06 23:08 
QuestionFlat Scrollbars Pin
Sarath C18-May-06 1:17
Sarath C18-May-06 1:17 
AnswerRe: Flat Scrollbars Pin
Laxman Auti18-May-06 1:36
Laxman Auti18-May-06 1:36 
GeneralRe: Flat Scrollbars Pin
Sarath C18-May-06 1:41
Sarath C18-May-06 1:41 
GeneralRe: Flat Scrollbars Pin
Laxman Auti18-May-06 2:08
Laxman Auti18-May-06 2:08 
QuestionStart console application in background Pin
GDavy18-May-06 1:15
GDavy18-May-06 1:15 
AnswerRe: Start console application in background Pin
Laxman Auti18-May-06 1:33
Laxman Auti18-May-06 1:33 
AnswerRe: Start console application in background Pin
Rage18-May-06 1:36
professionalRage18-May-06 1:36 
GeneralRe: Start console application in background Pin
GDavy18-May-06 2:01
GDavy18-May-06 2:01 
AnswerRe: Start console application in background Pin
Monty218-May-06 2:13
Monty218-May-06 2:13 
QuestionZip a file without zipping in folder Pin
zahid_ash18-May-06 1:13
zahid_ash18-May-06 1:13 
AnswerRe: Zip a file without zipping in folder Pin
ThatsAlok18-May-06 1:48
ThatsAlok18-May-06 1:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.