Click here to Skip to main content
15,891,846 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SendMessage Pin
prasad_som3-Apr-07 21:10
prasad_som3-Apr-07 21:10 
GeneralRe: SendMessage Pin
Naveen3-Apr-07 21:39
Naveen3-Apr-07 21:39 
AnswerRe: SendMessage Pin
prasad_som4-Apr-07 2:47
prasad_som4-Apr-07 2:47 
AnswerRe: SendMessage Pin
Roger Stoltz3-Apr-07 21:47
Roger Stoltz3-Apr-07 21:47 
GeneralRe: SendMessage Pin
Anilkumar K V3-Apr-07 23:00
Anilkumar K V3-Apr-07 23:00 
GeneralRe: SendMessage Pin
Roger Stoltz4-Apr-07 1:08
Roger Stoltz4-Apr-07 1:08 
GeneralRe: SendMessage Pin
Anilkumar K V9-Apr-07 23:14
Anilkumar K V9-Apr-07 23:14 
GeneralRe: SendMessage Pin
Roger Stoltz10-Apr-07 1:29
Roger Stoltz10-Apr-07 1:29 
anilFirst wrote:
MessageLoop ( GetMessage & DispatchMessage ) not needed in some cases. So it means that SendMessage() can call WindowProc directly.


Yes. In case the message is sent using SendMessage().


anilFirst wrote:
For a test case call UpdateWindow() before MessageLoop will invoke WindowProc directly. WindowProc will be called with WM_PAINT message. Then only the control comes to MessageLoop.


Confused | :confused:
I don't understand what you mean. Is this a question?
If you want to see how message handling works, I suggest you use your own user defined message ID. You cannot use WM_PAINT or WM_TIMER for this purpose since those messages are treated differently than other messages.
Try sending with SendMessage() and posting with PostMessage() from the main thread and see how the call stack differs in the two scenarios.
Then try sending the message from another thread and you'll find that the call stack looks the same as if the message was posted from the main thread.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: SendMessage Pin
Anilkumar K V11-Apr-07 19:53
Anilkumar K V11-Apr-07 19:53 
QuestionTab controls Pin
deeps_cute3-Apr-07 20:04
deeps_cute3-Apr-07 20:04 
AnswerRe: Tab controls Pin
vimarsh puneet3-Apr-07 20:31
vimarsh puneet3-Apr-07 20:31 
AnswerRe: Tab controls Pin
Cedric Moonen3-Apr-07 20:56
Cedric Moonen3-Apr-07 20:56 
QuestionMake virtual method in my project Pin
nhatvhm3-Apr-07 18:34
nhatvhm3-Apr-07 18:34 
GeneralRe: Make virtual method in my project Pin
prasad_som3-Apr-07 18:48
prasad_som3-Apr-07 18:48 
AnswerRe: Make virtual method in my project Pin
ThatsAlok18-Apr-07 21:08
ThatsAlok18-Apr-07 21:08 
QuestionHow to use form view in tab control Pin
sireesha_sree3-Apr-07 18:29
sireesha_sree3-Apr-07 18:29 
AnswerRe: How to use form view in tab control Pin
Naveen3-Apr-07 19:14
Naveen3-Apr-07 19:14 
GeneralRe: How to use form view in tab control Pin
sireesha_sree3-Apr-07 19:22
sireesha_sree3-Apr-07 19:22 
QuestionRe: How to use form view in tab control Pin
vimarsh puneet3-Apr-07 19:26
vimarsh puneet3-Apr-07 19:26 
AnswerRe: How to use form view in tab control Pin
sireesha_sree3-Apr-07 19:49
sireesha_sree3-Apr-07 19:49 
GeneralRe: How to use form view in tab control Pin
vimarsh puneet3-Apr-07 20:02
vimarsh puneet3-Apr-07 20:02 
GeneralRe: How to use form view in tab control Pin
Naveen3-Apr-07 19:47
Naveen3-Apr-07 19:47 
GeneralRe: How to use form view in tab control Pin
megha_gharote3-Apr-07 19:52
megha_gharote3-Apr-07 19:52 
GeneralRe: How to use form view in tab control Pin
Naveen3-Apr-07 19:58
Naveen3-Apr-07 19:58 
GeneralRe: How to use form view in tab control Pin
sireesha_sree3-Apr-07 20:02
sireesha_sree3-Apr-07 20:02 

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.