Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows networking guidance needed Pin
David Crow27-Apr-04 2:21
David Crow27-Apr-04 2:21 
GeneralRe: Windows networking guidance needed Pin
elizard27-Apr-04 6:37
elizard27-Apr-04 6:37 
GeneralRe: Windows networking guidance needed Pin
David Crow28-Apr-04 2:06
David Crow28-Apr-04 2:06 
GeneralCListCtrl Scrollbar related Pin
rajandpayal26-Apr-04 20:21
rajandpayal26-Apr-04 20:21 
GeneralTHreads Pin
ykutanoor26-Apr-04 20:14
ykutanoor26-Apr-04 20:14 
GeneralRe: THreads Pin
toxcct26-Apr-04 21:52
toxcct26-Apr-04 21:52 
GeneralRe: THreads Pin
Prakash Nadar26-Apr-04 22:08
Prakash Nadar26-Apr-04 22:08 
GeneralRe: THreads Pin
Jitendra gangwar26-Apr-04 22:52
Jitendra gangwar26-Apr-04 22:52 
1. Put this code in both the thread code that is required for the Examining a Message Queue that is associated with a particaular thread.

BOOL fDone;
MSG msg;
// Begin the operation and continue until it is complete

fDone = FALSE;
while (!fDone)
{
fDone = DoLengthyOperation(); // application-defined function

// Remove any messages that may be in the queue. If the
// queue contains any mouse or keyboard
// messages, end the operation.

while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
switch(msg.message)
{
case WM_USER1:
case WM_USER2:
//
// Perform any required cleanup.
//
fDone = TRUE;
}
}
}

2. Use the PostThreadMessage(....) API for posting the messages between threads.

Jitendra
GeneralCDataGrid control - selecting row & column header alignment Pin
Joseph Lee26-Apr-04 19:23
Joseph Lee26-Apr-04 19:23 
Generalwhy SetLayeredWindowAttribute does not work for child windows Pin
Atif Mushtaq26-Apr-04 19:16
Atif Mushtaq26-Apr-04 19:16 
QuestionHow to convert UNICODE string of KOREAN to ANSI string Pin
MiCROHARD26-Apr-04 17:27
MiCROHARD26-Apr-04 17:27 
AnswerRe: How to convert UNICODE string of KOREAN to ANSI string Pin
Prakash Nadar26-Apr-04 18:14
Prakash Nadar26-Apr-04 18:14 
GeneralRe: How to convert UNICODE string of KOREAN to ANSI string Pin
ChetnaBABY27-Apr-04 0:13
ChetnaBABY27-Apr-04 0:13 
GeneralRe: How to convert UNICODE string of KOREAN to ANSI string Pin
Prakash Nadar27-Apr-04 1:17
Prakash Nadar27-Apr-04 1:17 
AnswerRe: How to convert UNICODE string of KOREAN to ANSI string Pin
MiCROHARD26-Apr-04 21:02
MiCROHARD26-Apr-04 21:02 
AnswerRe: How to convert UNICODE string of KOREAN to ANSI string Pin
Mike Dimmick26-Apr-04 22:58
Mike Dimmick26-Apr-04 22:58 
GeneralRe: How to convert UNICODE string of KOREAN to ANSI string Pin
MiCROHARD27-Apr-04 9:21
MiCROHARD27-Apr-04 9:21 
AnswerRe: How to convert UNICODE string of KOREAN to ANSI string Pin
Anthony_Yio26-Apr-04 23:01
Anthony_Yio26-Apr-04 23:01 
GeneralRe: How to convert UNICODE string of KOREAN to ANSI string Pin
MiCROHARD27-Apr-04 9:22
MiCROHARD27-Apr-04 9:22 
GeneralFile Read/Write Determination Pin
IceBerG7126-Apr-04 17:23
IceBerG7126-Apr-04 17:23 
GeneralRe: File Read/Write Determination Pin
Maxwell Chen26-Apr-04 19:37
Maxwell Chen26-Apr-04 19:37 
GeneralRe: File Read/Write Determination Pin
David Crow27-Apr-04 2:23
David Crow27-Apr-04 2:23 
GeneralHelp needed creating desktop lock Pin
hakmar3426-Apr-04 15:32
hakmar3426-Apr-04 15:32 
GeneralRe: Help needed creating desktop lock Pin
Maxwell Chen26-Apr-04 18:18
Maxwell Chen26-Apr-04 18:18 
Generalsend email in VC Pin
includeh1026-Apr-04 15:27
includeh1026-Apr-04 15:27 

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.