Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to use a normal window as a modal dialog box? Pin
10-Dec-00 18:38
suss10-Dec-00 18:38 
QuestionIntercept all input from user? Pin
10-Dec-00 16:25
suss10-Dec-00 16:25 
AnswerRe: Intercept all input from user? Pin
Chris Maunder10-Dec-00 17:37
cofounderChris Maunder10-Dec-00 17:37 
GeneralRe: Intercept all input from user? Pin
Trey Ethridge13-Dec-00 7:01
Trey Ethridge13-Dec-00 7:01 
GeneralHTML Viewer (browser) but NOT MFC Pin
James Millson10-Dec-00 14:54
James Millson10-Dec-00 14:54 
GeneralRe: HTML Viewer (browser) but NOT MFC Pin
10-Dec-00 19:15
suss10-Dec-00 19:15 
QuestionHow do I create a hidden dialog? Pin
10-Dec-00 13:14
suss10-Dec-00 13:14 
AnswerRe: How do I create a hidden dialog? Pin
Matt Philmon10-Dec-00 19:42
Matt Philmon10-Dec-00 19:42 
It's really pretty simple, though. Just create your dialog with the editor. Let Class Wizard make your classes for it like normal. I imagine you'll be showing/hiding from your main app, so if, say you were a dialog based app, simply include your header for your hidden dialog(s) in the header for your main dialog and make a member or two:
CHiddenDlg* m_pHidden;

Now assuming your resource ID for the hidden dialog is IDD_HIDDEN_DIALOG, in the CPP of you main in OnInitDialog just do this:
m_pHidden1 = new CHiddenDlg(this);
m_pHidden1->Create(IDD_HIDDEN_DIALOG, this);

Then, whenever you want to show/hide just use
m_pHidden1->ShowWindow(SW_SHOW);
m_pHidden1->ShowWindow(SW_HIDE);

Make sure you clean up at the end and you'll want to be a little better than I was about checking that your dialogs got created and all that.

General<MFC>Internet Explorer .exe and URL Pin
ahdig10-Dec-00 6:52
ahdig10-Dec-00 6:52 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Uwe Keim10-Dec-00 7:28
sitebuilderUwe Keim10-Dec-00 7:28 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Vickie10-Dec-00 8:06
Vickie10-Dec-00 8:06 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Uwe Keim10-Dec-00 8:08
sitebuilderUwe Keim10-Dec-00 8:08 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Michael Dunn10-Dec-00 9:35
sitebuilderMichael Dunn10-Dec-00 9:35 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Chris Maunder10-Dec-00 10:17
cofounderChris Maunder10-Dec-00 10:17 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Vickie15-Dec-00 7:56
Vickie15-Dec-00 7:56 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Jim Howard15-Dec-00 10:11
Jim Howard15-Dec-00 10:11 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Vickie25-Jan-01 18:19
Vickie25-Jan-01 18:19 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Michael Dunn25-Jan-01 18:54
sitebuilderMichael Dunn25-Jan-01 18:54 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Vickie31-Jan-01 7:02
Vickie31-Jan-01 7:02 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Michael Dunn31-Jan-01 9:31
sitebuilderMichael Dunn31-Jan-01 9:31 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Vickie2-Feb-01 4:46
Vickie2-Feb-01 4:46 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Michael Dunn2-Feb-01 7:46
sitebuilderMichael Dunn2-Feb-01 7:46 
GeneralRe: <MFC>Internet Explorer .exe and URL Pin
Vickie2-Feb-01 7:33
Vickie2-Feb-01 7:33 
GeneralDirectX 8 Pin
10-Dec-00 3:36
suss10-Dec-00 3:36 
GeneralRe: DirectX 8 Pin
Christian Graus10-Dec-00 10:42
protectorChristian Graus10-Dec-00 10: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.