Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDlg on active (MFC) Pin
waxie30-May-07 21:58
waxie30-May-07 21:58 
GeneralRe: CDlg on active (MFC) Pin
Roger Stoltz30-May-07 22:02
Roger Stoltz30-May-07 22:02 
GeneralRe: CDlg on active (MFC) Pin
Roger Stoltz30-May-07 23:17
Roger Stoltz30-May-07 23:17 
GeneralRe: CDlg on active (MFC) Pin
waxie30-May-07 23:23
waxie30-May-07 23:23 
GeneralRe: CDlg on active (MFC) Pin
sps-itsec4630-May-07 23:41
sps-itsec4630-May-07 23:41 
GeneralRe: CDlg on active (MFC) Pin
waxie30-May-07 23:49
waxie30-May-07 23:49 
GeneralRe: CDlg on active (MFC) Pin
sps-itsec4631-May-07 0:20
sps-itsec4631-May-07 0:20 
GeneralRe: CDlg on active (MFC) Pin
Roger Stoltz31-May-07 0:43
Roger Stoltz31-May-07 0:43 
waxie wrote:
The dialog (my dialog) is one of the tabs of a parent dialog. Would it matter?


It depends on what you're trying to do.

My guess is that you want to know when the user selects another tab in the control.
If I guessed correctly and you're using CTabCtrl you have to write a message handler for the WM_NOTIFY message sent from the tab control with the TCN_SELCHANGE control code.
Use ClassWizard to add a message handler for this. Afterwards you message map should have an entry looking something like this:
ON_NOTIFY( TCN_SELCHANGE, IDC_TAB, OnTabChanged )
...and a message handler looking similar to this:
void <YourDialogClass>::OnTabSelchange( NMHDR* pNMHDR, LRESULT* pResult )

Have a look att the MSDN sample FIRE[^] to see how it's done.


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

GeneralRe: CDlg on active (MFC) Pin
Doc Lobster30-May-07 22:15
Doc Lobster30-May-07 22:15 
GeneralRe: CDlg on active (MFC) Pin
waxie30-May-07 23:11
waxie30-May-07 23:11 
AnswerRe: CDlg on active (MFC) Pin
SandipG 30-May-07 23:03
SandipG 30-May-07 23:03 
GeneralRe: CDlg on active (MFC) Pin
waxie30-May-07 23:10
waxie30-May-07 23:10 
QuestionHow to hook File movement Pin
VC_RYK30-May-07 21:11
VC_RYK30-May-07 21:11 
AnswerRe: How to hook File movement Pin
Nibu babu thomas30-May-07 21:41
Nibu babu thomas30-May-07 21:41 
QuestionAgain CListCtrl Pin
Bravoone_200630-May-07 20:03
Bravoone_200630-May-07 20:03 
AnswerRe: Again CListCtrl Pin
Nibu babu thomas30-May-07 20:26
Nibu babu thomas30-May-07 20:26 
GeneralRe: Again CListCtrl Pin
_AnsHUMAN_ 30-May-07 20:36
_AnsHUMAN_ 30-May-07 20:36 
QuestionRe: Again CListCtrl Pin
Bravoone_200630-May-07 20:37
Bravoone_200630-May-07 20:37 
AnswerRe: Again CListCtrl Pin
_AnsHUMAN_ 30-May-07 20:34
_AnsHUMAN_ 30-May-07 20:34 
QuestionRe: Again CListCtrl Pin
Bravoone_200630-May-07 20:47
Bravoone_200630-May-07 20:47 
AnswerRe: Again CListCtrl Pin
Cedric Moonen30-May-07 20:59
Cedric Moonen30-May-07 20:59 
AnswerRe: Again CListCtrl Pin
Bravoone_200630-May-07 21:31
Bravoone_200630-May-07 21:31 
GeneralRe: Again CListCtrl Pin
_AnsHUMAN_ 30-May-07 22:04
_AnsHUMAN_ 30-May-07 22:04 
Questionhow to replace a string Pin
Pankaj.Jain30-May-07 19:54
professionalPankaj.Jain30-May-07 19:54 
AnswerRe: how to replace a string Pin
Hamid_RT30-May-07 20:17
Hamid_RT30-May-07 20:17 

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.