Click here to Skip to main content
15,895,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: console app Pin
ian mariano29-Oct-02 8:25
ian mariano29-Oct-02 8:25 
GeneralMP3 Where to start Pin
nlecren29-Oct-02 4:42
nlecren29-Oct-02 4:42 
GeneralRe: MP3 Where to start Pin
nlecren29-Oct-02 5:06
nlecren29-Oct-02 5:06 
GeneralRe: MP3 Where to start Pin
Stephane Rodriguez.29-Oct-02 6:01
Stephane Rodriguez.29-Oct-02 6:01 
GeneralRe: MP3 Where to start Pin
nlecren29-Oct-02 7:20
nlecren29-Oct-02 7:20 
GeneralRe: MP3 Where to start Pin
ian mariano29-Oct-02 8:31
ian mariano29-Oct-02 8:31 
QuestionHow do I... Pin
Jason Troitsky (was Hattingh)29-Oct-02 3:45
Jason Troitsky (was Hattingh)29-Oct-02 3:45 
AnswerRe: How do I... Pin
Nitron29-Oct-02 4:15
Nitron29-Oct-02 4:15 
In your main dialog class, prepare:

private:
   CYourModelessDlg* m_pYourModelessDlg;



then in your OnInit for main dialog:

this->m_pYourModelessDlg = new CYourModelessDlg
this->m_pYourModelessDlg->Create( IDD_YOUR_DIALOG, AfxGetMainWnd());



in your fcn that will show the dlg:
this->m_pYourModelessDlg->ShowWindow(SW_SHOW);



then when you handle WM_CLOSE for your main dlg:
delete this->m_pYourModelessDlg;




Nitron
_________________________________________--
message sent on 100% recycled electrons.
GeneralRe: How do I... Pin
Jason Troitsky (was Hattingh)29-Oct-02 4:22
Jason Troitsky (was Hattingh)29-Oct-02 4:22 
GeneralRe: How do I... Pin
Nitron29-Oct-02 4:35
Nitron29-Oct-02 4:35 
GeneralPS Pin
Nitron29-Oct-02 4:39
Nitron29-Oct-02 4:39 
GeneralDLLs and XP themes... Pin
LukeV29-Oct-02 2:54
LukeV29-Oct-02 2:54 
GeneralRe: DLLs and XP themes... Pin
Michael Dunn29-Oct-02 4:50
sitebuilderMichael Dunn29-Oct-02 4:50 
GeneralRe: DLLs and XP themes... Pin
LukeV29-Oct-02 4:54
LukeV29-Oct-02 4:54 
Generalunreliable custum context menu Pin
ns29-Oct-02 2:27
ns29-Oct-02 2:27 
GeneralRe: unreliable custum context menu Pin
ian mariano29-Oct-02 2:45
ian mariano29-Oct-02 2:45 
GeneralRe: unreliable custum context menu Pin
ns29-Oct-02 2:47
ns29-Oct-02 2:47 
GeneralRe: unreliable custum context menu Pin
Ravi Bhavnani29-Oct-02 5:34
professionalRavi Bhavnani29-Oct-02 5:34 
GeneralRe: unreliable custum context menu Pin
ian mariano29-Oct-02 8:34
ian mariano29-Oct-02 8:34 
GeneralRe: unreliable custum context menu Pin
jhwurmbach29-Oct-02 22:28
jhwurmbach29-Oct-02 22:28 
GeneralRe: unreliable custum context menu Pin
ian mariano30-Oct-02 0:57
ian mariano30-Oct-02 0:57 
QuestionAm I running XP? Pin
Rickard Andersson2029-Oct-02 2:24
Rickard Andersson2029-Oct-02 2:24 
AnswerRe: Am I running XP? Pin
Daniel Turini29-Oct-02 2:34
Daniel Turini29-Oct-02 2:34 
AnswerRe: Am I running XP? Pin
Michael Dunn29-Oct-02 4:51
sitebuilderMichael Dunn29-Oct-02 4:51 
GeneralA colored button Pin
Cerb29-Oct-02 2:17
Cerb29-Oct-02 2: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.