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

C / C++ / MFC

 
GeneralSendMessage() Pin
John Uhlenbrock22-Aug-01 6:36
John Uhlenbrock22-Aug-01 6:36 
GeneralRe: SendMessage() Pin
Mukkie22-Aug-01 6:55
Mukkie22-Aug-01 6:55 
GeneralRe: SendMessage() Pin
John Uhlenbrock22-Aug-01 8:01
John Uhlenbrock22-Aug-01 8:01 
GeneralRe: SendMessage() Pin
John Uhlenbrock22-Aug-01 8:26
John Uhlenbrock22-Aug-01 8:26 
GeneralRe: SendMessage() Pin
dfields32622-Aug-01 9:23
dfields32622-Aug-01 9:23 
GeneralRe: SendMessage() Pin
Mukkie22-Aug-01 11:14
Mukkie22-Aug-01 11:14 
GeneralRe: SendMessage() Pin
John Uhlenbrock22-Aug-01 14:17
John Uhlenbrock22-Aug-01 14:17 
GeneralRe: SendMessage() Pin
Stefan Pedersen22-Aug-01 14:51
Stefan Pedersen22-Aug-01 14:51 
PostMessage() puts the message in the windows message queue and then returns, no processing of the message is performed before the window's message pump gets to run. With SendMessage() you "forces" the imidiate processing of the message so the message is processed *before* SendMessage() returns. SendMessage() isn't usually a good idea since you can get weird recursive effects if you arn't careful. The most common problem people seem to have with PostMessage() is that they are passing pointers to stack-allocated objects which goes out of scope (are destroyed) before the window procedure gets hold of the pointer... As always, mind your allocations.
QuestionRTTI Speed Hit? Pin
Steve The Plant22-Aug-01 5:51
Steve The Plant22-Aug-01 5:51 
AnswerRe: RTTI Speed Hit? Pin
Tomasz Sowinski23-Aug-01 3:45
Tomasz Sowinski23-Aug-01 3:45 
GeneralAutoscroll using the IntelliMouse Pin
22-Aug-01 5:50
suss22-Aug-01 5:50 
GeneralRe: Autoscroll using the IntelliMouse Pin
Christian Graus22-Aug-01 12:53
protectorChristian Graus22-Aug-01 12:53 
GeneralAssigning variables to recordsets Pin
Loulou22-Aug-01 5:45
Loulou22-Aug-01 5:45 
QuestionGetting Edit control caret position? Pin
Peter Pearson22-Aug-01 5:07
Peter Pearson22-Aug-01 5:07 
AnswerRe: Getting Edit control caret position? Pin
Per22-Aug-01 7:06
Per22-Aug-01 7:06 
GeneralRe: Getting Edit control caret position? Pin
Peter Pearson22-Aug-01 9:56
Peter Pearson22-Aug-01 9:56 
GeneralCTreeView Help! Pin
22-Aug-01 4:28
suss22-Aug-01 4:28 
GeneralI have a very similiar problem! Pin
datablader8-Nov-01 16:23
datablader8-Nov-01 16:23 
Generalframe active element Pin
Oguzhan ERKAN22-Aug-01 3:29
Oguzhan ERKAN22-Aug-01 3:29 
QuestionHow to disable clipboard Pin
22-Aug-01 0:48
suss22-Aug-01 0:48 
GeneralHelp on Property Sheets/Pages Pin
Ray Hayes22-Aug-01 0:46
Ray Hayes22-Aug-01 0:46 
GeneralRe: Help on Property Sheets/Pages Pin
Tomasz Sowinski22-Aug-01 1:26
Tomasz Sowinski22-Aug-01 1:26 
GeneralRe: Help on Property Sheets/Pages Pin
Ray Hayes22-Aug-01 1:54
Ray Hayes22-Aug-01 1:54 
GeneralRe: Help on Property Sheets/Pages Pin
Tomasz Sowinski22-Aug-01 2:02
Tomasz Sowinski22-Aug-01 2:02 
GeneralRe: Help on Property Sheets/Pages Pin
Ray Hayes22-Aug-01 3:16
Ray Hayes22-Aug-01 3:16 

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.