Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConvert HDC to long Pin
Kannan Kalyanaraman4-May-04 3:00
Kannan Kalyanaraman4-May-04 3:00 
GeneralRe: Convert HDC to long Pin
Anonymous4-May-04 3:12
Anonymous4-May-04 3:12 
GeneralRe: Convert HDC to long Pin
Kannan Kalyanaraman4-May-04 3:35
Kannan Kalyanaraman4-May-04 3:35 
GeneralO.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 2:09
Kuniva4-May-04 2:09 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 2:15
Kuniva4-May-04 2:15 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Mike Dimmick4-May-04 5:14
Mike Dimmick4-May-04 5:14 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 8:11
Kuniva4-May-04 8:11 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Mike Dimmick4-May-04 12:11
Mike Dimmick4-May-04 12:11 
Because the message box runs a message loop, your code can go re-entrant if another thread posts or sends messages to your window, or if a timer fires. I think that's what you were seeing.

Part of the issue is that sent messages are always processed within the GetMessage call of the message loop. The other part is that the message loop inside MessageBox appears to pump messages for all windows, not just the message box window itself.

Stability. What an interesting concept. -- Chris Maunder
GeneralCFile size in bytes Pin
Jamie Kenyon4-May-04 2:02
Jamie Kenyon4-May-04 2:02 
GeneralRe: CFile size in bytes Pin
David Crow4-May-04 2:16
David Crow4-May-04 2:16 
GeneralRe: CFile size in bytes Pin
andyxia4-May-04 2:33
andyxia4-May-04 2:33 
GeneralRe: CFile size in bytes Pin
Alexander M.,4-May-04 3:18
Alexander M.,4-May-04 3:18 
GeneralRe: CFile size in bytes Pin
Jamie Kenyon4-May-04 4:50
Jamie Kenyon4-May-04 4:50 
QuestionSetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:02
uus994-May-04 2:02 
AnswerRe: SetDIBitsToDevice causes image to flip, why? Pin
Monty24-May-04 2:15
Monty24-May-04 2:15 
GeneralRe: SetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:27
uus994-May-04 2:27 
GeneralC2440: 'static_cast' Error Pin
sweep1234-May-04 1:51
sweep1234-May-04 1:51 
GeneralRe: C2440: 'static_cast' Error Pin
Mike Dimmick4-May-04 5:17
Mike Dimmick4-May-04 5:17 
GeneralRe: C2440: 'static_cast' Error Pin
sweep1234-May-04 5:56
sweep1234-May-04 5:56 
GeneralFile drag/drop problem, waiting for your help! Pin
andyxia4-May-04 1:21
andyxia4-May-04 1:21 
GeneralHook in dll Pin
yingkou4-May-04 0:31
yingkou4-May-04 0:31 
GeneralRe: Hook in dll Pin
Monty24-May-04 1:44
Monty24-May-04 1:44 
GeneralObj to Source file Pin
Gurou4-May-04 0:29
Gurou4-May-04 0:29 
GeneralRe: Obj to Source file Pin
toxcct4-May-04 0:46
toxcct4-May-04 0:46 
GeneralRe: Obj to Source file Pin
Gurou4-May-04 1:24
Gurou4-May-04 1:24 

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.