Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Detecting when a window is created Pin
palbano9-Jun-04 9:53
palbano9-Jun-04 9:53 
GeneralRe: Detecting when a window is created Pin
Tim James Reynolds10-Jun-04 2:39
Tim James Reynolds10-Jun-04 2:39 
GeneralRe: Detecting when a window is created Pin
gamitech9-Jun-04 9:54
gamitech9-Jun-04 9:54 
GeneralRe: Detecting when a window is created Pin
Tim James Reynolds10-Jun-04 2:50
Tim James Reynolds10-Jun-04 2:50 
GeneralRe: Detecting when a window is created Pin
Tim James Reynolds10-Jun-04 3:52
Tim James Reynolds10-Jun-04 3:52 
QuestionWhat's the message when I leave a non modal dialog? Pin
doctorpi9-Jun-04 7:59
doctorpi9-Jun-04 7:59 
AnswerRe: What's the message when I leave a non modal dialog? Pin
David Crow9-Jun-04 8:15
David Crow9-Jun-04 8:15 
AnswerRe: What's the message when I leave a non modal dialog? Pin
BlackKettle9-Jun-04 8:22
BlackKettle9-Jun-04 8:22 
The message you're looking for is WM_ACTIVATE
Here's a little something about it by MSDN:
CWnd::OnActivate
The framework calls this member function when a CWnd object is being activated or deactivated.

afx_msg void OnActivate(<br />
   UINT nState,<br />
   CWnd* pWndOther,<br />
   BOOL bMinimized <br />
);

Parameters
nState
Specifies whether the CWnd is being activated or deactivated. It can be one of the following values:
WA_INACTIVE The window is being deactivated.
WA_ACTIVE The window is being activated through some method other than a mouse click (for example, by use of the keyboard interface to select the window).
WA_CLICKACTIVE The window is being activated by a mouse click.
pWndOther
Pointer to the CWnd being activated or deactivated. The pointer can be NULL, and it may be temporary.
bMinimized
Specifies the minimized state of the CWnd being activated or deactivated. A value of TRUE indicates the window is minimized.
If TRUE, the CWnd is being activated; otherwise deactivated.

Remarks
If the CWnd object is activated with a mouse click, it will also receive an OnMouseActivate member function call.

Note This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function.
GeneralProcessing Arrow Keys in a Modeless Dialog (DLL) Pin
Justin Cooke9-Jun-04 6:08
Justin Cooke9-Jun-04 6:08 
GeneralRe: Processing Arrow Keys in a Modeless Dialog (DLL) Pin
mangellj9-Jun-04 9:55
mangellj9-Jun-04 9:55 
GeneralRe: Processing Arrow Keys in a Modeless Dialog (DLL) Pin
Justin Cooke10-Jun-04 10:46
Justin Cooke10-Jun-04 10:46 
Generalcan't delete all items from CListBox Pin
kfaday9-Jun-04 5:47
kfaday9-Jun-04 5:47 
GeneralRe: can't delete all items from CListBox Pin
palbano9-Jun-04 5:53
palbano9-Jun-04 5:53 
GeneralRe: can't delete all items from CListBox Pin
kfaday9-Jun-04 6:14
kfaday9-Jun-04 6:14 
GeneralRe: can't delete all items from CListBox Pin
walster9-Jun-04 7:36
walster9-Jun-04 7:36 
GeneralRe: can't delete all items from CListBox Pin
Ravi Bhavnani9-Jun-04 9:04
professionalRavi Bhavnani9-Jun-04 9:04 
GeneralRe: can't delete all items from CListBox Pin
Shi Zhu9-Jun-04 17:14
Shi Zhu9-Jun-04 17:14 
GeneralCWnd::OnEraseBkgnd usage Pin
kfaday9-Jun-04 5:24
kfaday9-Jun-04 5:24 
GeneralRe: CWnd::OnEraseBkgnd usage Pin
Iain Clarke, Warrior Programmer9-Jun-04 5:46
Iain Clarke, Warrior Programmer9-Jun-04 5:46 
GeneralRe: CWnd::OnEraseBkgnd usage Pin
kfaday9-Jun-04 6:16
kfaday9-Jun-04 6:16 
GeneralRe: CWnd::OnEraseBkgnd usage Pin
palbano9-Jun-04 7:07
palbano9-Jun-04 7:07 
QuestionNULL Char in a String ?? Pin
Alex H 19839-Jun-04 4:31
Alex H 19839-Jun-04 4:31 
AnswerRe: NULL Char in a String ?? Pin
Iain Clarke, Warrior Programmer9-Jun-04 4:55
Iain Clarke, Warrior Programmer9-Jun-04 4:55 
AnswerRe: NULL Char in a String ?? Pin
gamitech9-Jun-04 8:41
gamitech9-Jun-04 8:41 
QuestionHow to make a exe format ebook in C++ Pin
Tcpip20059-Jun-04 4:24
Tcpip20059-Jun-04 4: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.