Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Apply header programmatically Pin
Cedric Moonen13-Apr-07 4:50
Cedric Moonen13-Apr-07 4:50 
AnswerRe: Apply header programmatically Pin
krmed13-Apr-07 5:33
krmed13-Apr-07 5:33 
AnswerRe: Apply header programmatically Pin
Al_Pennyworth13-Apr-07 8:07
Al_Pennyworth13-Apr-07 8:07 
AnswerRe: Apply header programmatically Pin
Michael Dunn13-Apr-07 8:43
sitebuilderMichael Dunn13-Apr-07 8:43 
QuestionClosing a dialog box Pin
llp00na13-Apr-07 4:20
llp00na13-Apr-07 4:20 
AnswerRe: Closing a dialog box Pin
bob1697213-Apr-07 5:02
bob1697213-Apr-07 5:02 
GeneralRe: Closing a dialog box Pin
llp00na13-Apr-07 5:14
llp00na13-Apr-07 5:14 
GeneralRe: Closing a dialog box Pin
bob1697213-Apr-07 5:44
bob1697213-Apr-07 5:44 
A modal dialog is invoked with DoModal() and it does not return until the dialog is dismissed effectively preventing interaction with the owner.

A modeless is created with Create() and returns immediately leaving the owner AND the dialog open for interaction.

Referencing Jeff Prosise's book I get...

Modeless:
1) Dismiss the dialog using DestroyWindow and not EndDialog()

2) Do not allow CDialog::OnOK or CDialog::OnCancel because both call EndDialog()

3) Instantiated with "new"

4) Override CDialog::PostNCDestroy in the derived dialog class and execute "delete this"

Modal:
1) Dismiss the dialog with EndDialog(). Refer to Mr. Sivakumar's views on modality[^] for additonal info

2) Instantiated on the stack
GeneralRe: Closing a dialog box Pin
llp00na13-Apr-07 6:21
llp00na13-Apr-07 6:21 
GeneralRe: Closing a dialog box Pin
bob1697213-Apr-07 7:25
bob1697213-Apr-07 7:25 
GeneralRe: Closing a dialog box Pin
llp00na16-Apr-07 1:58
llp00na16-Apr-07 1:58 
QuestionShutdown Pin
prathuraj13-Apr-07 4:13
prathuraj13-Apr-07 4:13 
AnswerRe: Shutdown Pin
Roger Stoltz13-Apr-07 4:24
Roger Stoltz13-Apr-07 4:24 
GeneralRe: Shutdown Pin
prathuraj13-Apr-07 4:26
prathuraj13-Apr-07 4:26 
GeneralRe: Shutdown Pin
Roger Stoltz13-Apr-07 4:29
Roger Stoltz13-Apr-07 4:29 
GeneralRe: Shutdown Pin
prathuraj13-Apr-07 4:31
prathuraj13-Apr-07 4:31 
QuestionOverwriting a file in VC++ Pin
Harish_kj13-Apr-07 3:39
Harish_kj13-Apr-07 3:39 
AnswerRe: Overwriting a file in VC++ Pin
Maximilien13-Apr-07 3:58
Maximilien13-Apr-07 3:58 
QuestionShell_NotifyIcon :: Balloon (HOWTO) Pin
Programm3r13-Apr-07 2:59
Programm3r13-Apr-07 2:59 
AnswerRe: Shell_NotifyIcon :: Balloon (HOWTO) Pin
_AnsHUMAN_ 13-Apr-07 3:27
_AnsHUMAN_ 13-Apr-07 3:27 
GeneralRe: Shell_NotifyIcon :: Balloon (HOWTO) Pin
Programm3r13-Apr-07 3:38
Programm3r13-Apr-07 3:38 
Questiongetting two keys from keyboard simultaneously Pin
V_shr13-Apr-07 2:59
V_shr13-Apr-07 2:59 
AnswerRe: getting two keys from keyboard simultaneously Pin
Roger Stoltz13-Apr-07 4:05
Roger Stoltz13-Apr-07 4:05 
AnswerRe: getting two keys from keyboard simultaneously Pin
Dustin Henry13-Apr-07 8:11
Dustin Henry13-Apr-07 8:11 
GeneralRe: getting two keys from keyboard simultaneously Pin
Roger Stoltz14-Apr-07 2:11
Roger Stoltz14-Apr-07 2:11 

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.