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

C / C++ / MFC

 
AnswerRe: ostream Pin
Zac Howland3-Aug-06 11:16
Zac Howland3-Aug-06 11:16 
GeneralRe: ostream Pin
FredrickNorge3-Aug-06 11:22
FredrickNorge3-Aug-06 11:22 
QuestionEnvirontment Variables Pin
Jay033-Aug-06 9:45
Jay033-Aug-06 9:45 
AnswerRe: Environtment Variables Pin
Chris Losinger3-Aug-06 10:00
professionalChris Losinger3-Aug-06 10:00 
GeneralRe: Environtment Variables Pin
Jay033-Aug-06 10:08
Jay033-Aug-06 10:08 
GeneralRe: Environtment Variables Pin
Chris Losinger3-Aug-06 10:28
professionalChris Losinger3-Aug-06 10:28 
QuestionPreTranslateMessage and WM_SETFOCUS Pin
Jim Crafton3-Aug-06 9:29
Jim Crafton3-Aug-06 9:29 
AnswerRe: PreTranslateMessage and WM_SETFOCUS Pin
PJ Arends3-Aug-06 10:26
professionalPJ Arends3-Aug-06 10:26 
AFAIK the WM_* messages are sent to the pMsg->hWnd window. If that window does not handle the message then it is sent to the parent of that window and on up the parent chain until one of the windows actually handles the message (returns TRUE), or the there are no more parent windows. So the only way the main window will get the WM_SETFOCUS message is if none of the child windows handle it, or they return false if they do.

See CWnd::WalkPretranslateTree() and AfxInternalPreTranslateMessage() in the MFC sources for more details (Set a breakpoint in your PreTranslateMessage() function and use the call stack)



You may be right
I may be crazy
-- Billy Joel --


Within you lies the power for good, use it!!!
AnswerRe: PreTranslateMessage and WM_SETFOCUS Pin
William.Wang3-Aug-06 19:09
William.Wang3-Aug-06 19:09 
AnswerRe: PreTranslateMessage and WM_SETFOCUS Pin
PJ Arends4-Aug-06 8:12
professionalPJ Arends4-Aug-06 8:12 
GeneralRe: PreTranslateMessage and WM_SETFOCUS Pin
Jim Crafton4-Aug-06 8:43
Jim Crafton4-Aug-06 8:43 
QuestionHow to keep system tray icon active all the time? Pin
Madhu Kavali3-Aug-06 8:38
Madhu Kavali3-Aug-06 8:38 
QuestionHow to release the mouse holding from the scroll thump in CListCtrl using MFC? Pin
SelvaKr3-Aug-06 7:18
SelvaKr3-Aug-06 7:18 
AnswerRe: How to release the mouse holding from the scroll thump in CListCtrl using MFC? Pin
Viorel.3-Aug-06 21:00
Viorel.3-Aug-06 21:00 
QuestionCFtpConnection ???? Pin
racing573-Aug-06 6:11
racing573-Aug-06 6:11 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 6:13
racing573-Aug-06 6:13 
QuestionRe: CFtpConnection ???? Pin
David Crow3-Aug-06 6:14
David Crow3-Aug-06 6:14 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 6:35
racing573-Aug-06 6:35 
QuestionRe: CFtpConnection ???? Pin
David Crow3-Aug-06 6:57
David Crow3-Aug-06 6:57 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 7:28
racing573-Aug-06 7:28 
QuestionRe: CFtpConnection ???? Pin
David Crow3-Aug-06 7:32
David Crow3-Aug-06 7:32 
AnswerRe: CFtpConnection ???? Pin
racing573-Aug-06 10:51
racing573-Aug-06 10:51 
GeneralRe: CFtpConnection ???? Pin
racing573-Aug-06 22:57
racing573-Aug-06 22:57 
GeneralRe: CFtpConnection ???? Pin
David Crow4-Aug-06 2:31
David Crow4-Aug-06 2:31 
GeneralRe: CFtpConnection ???? Pin
racing574-Aug-06 3:15
racing574-Aug-06 3:15 

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.