Click here to Skip to main content
15,889,450 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionResource ID conflicts with internal MFC. Pin
Maximilien11-Jun-12 7:06
Maximilien11-Jun-12 7:06 
AnswerRe: Resource ID conflicts with internal MFC. Pin
Richard MacCutchan11-Jun-12 22:06
mveRichard MacCutchan11-Jun-12 22:06 
GeneralRe: Resource ID conflicts with internal MFC. Pin
Maximilien13-Jun-12 5:02
Maximilien13-Jun-12 5:02 
QuestionCapAVI callback – again - user defined parameter? Pin
Vaclav_11-Jun-12 4:20
Vaclav_11-Jun-12 4:20 
AnswerRe: CapAVI callback – again - user defined parameter? Pin
Chris Losinger11-Jun-12 4:46
professionalChris Losinger11-Jun-12 4:46 
QuestionAbout Active Window And Receive Msg Pin
yingkou11-Jun-12 3:53
yingkou11-Jun-12 3:53 
AnswerRe: About Active Window And Receive Msg Pin
Code-o-mat11-Jun-12 5:29
Code-o-mat11-Jun-12 5:29 
AnswerRe: About Active Window And Receive Msg Pin
JohnCz13-Jun-12 13:10
JohnCz13-Jun-12 13:10 
Since you are using nonstandard nomenclature, please define Root Window, Sub window and Child window. What is relationship between all windows?

In general message about gaining focus (by any means including mouse click) is sent to a window that is gaining focus and loosing focus.
If this window is a child window, the parent does not know about what child gained focus.
You have two choices: write code in the child window to notify parent window about gaining focus using custom defined message, or write windows hook that will receive messages before any window does and post a message from the hook procedure to a parent window.

In both cases you would pass a handle to a window that gains focus.
JohnCz

QuestionActive Directory Pin
Hadi Dayvary10-Jun-12 19:08
professionalHadi Dayvary10-Jun-12 19:08 
QuestionWhat CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 7:51
ForNow10-Jun-12 7:51 
AnswerRe: What CWinThread is pointed to by AfxGetApp Pin
Richard MacCutchan10-Jun-12 7:55
mveRichard MacCutchan10-Jun-12 7:55 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 9:02
ForNow10-Jun-12 9:02 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 9:08
ForNow10-Jun-12 9:08 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
Richard MacCutchan10-Jun-12 22:01
mveRichard MacCutchan10-Jun-12 22:01 
AnswerRe: What CWinThread is pointed to by AfxGetApp Pin
Erudite_Eric10-Jun-12 9:15
Erudite_Eric10-Jun-12 9:15 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
ForNow10-Jun-12 18:26
ForNow10-Jun-12 18:26 
GeneralRe: What CWinThread is pointed to by AfxGetApp Pin
Erudite_Eric11-Jun-12 0:58
Erudite_Eric11-Jun-12 0:58 
AnswerRe: What CWinThread is pointed to by AfxGetApp Pin
Aescleal10-Jun-12 13:11
Aescleal10-Jun-12 13:11 
QuestionCallback (capAVI) and MFC doc/view Pin
Vaclav_10-Jun-12 6:17
Vaclav_10-Jun-12 6:17 
QuestionExample of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
likescr79-Jun-12 19:41
likescr79-Jun-12 19:41 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Richard MacCutchan9-Jun-12 22:17
mveRichard MacCutchan9-Jun-12 22:17 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Aescleal9-Jun-12 22:22
Aescleal9-Jun-12 22:22 
GeneralRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
likescr713-Jun-12 3:27
likescr713-Jun-12 3:27 
QuestionRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
CPallini10-Jun-12 21:06
mveCPallini10-Jun-12 21:06 
AnswerRe: Example of CONSTRUCTOR and DESTRUCTOR in derived class ? ? ? Pin
Eytukan11-Jun-12 4:42
Eytukan11-Jun-12 4:42 

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.