Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBasic Parsing support Pin
peterchen14-Apr-03 1:33
peterchen14-Apr-03 1:33 
GeneralRe: Basic Parsing support Pin
Iain Clarke, Warrior Programmer14-Apr-03 3:31
Iain Clarke, Warrior Programmer14-Apr-03 3:31 
GeneralRe: Basic Parsing support Pin
peterchen14-Apr-03 3:59
peterchen14-Apr-03 3:59 
GeneralRe: Basic Parsing support Pin
Iain Clarke, Warrior Programmer14-Apr-03 5:40
Iain Clarke, Warrior Programmer14-Apr-03 5:40 
GeneralCreate Multiple Windows Pin
Paul Farry14-Apr-03 1:29
professionalPaul Farry14-Apr-03 1:29 
GeneralRe: Create Multiple Windows Pin
Rage14-Apr-03 2:36
professionalRage14-Apr-03 2:36 
GeneralRe: Create Multiple Windows Pin
Paul Farry14-Apr-03 2:49
professionalPaul Farry14-Apr-03 2:49 
GeneralRe: Create Multiple Windows Pin
Rage14-Apr-03 6:22
professionalRage14-Apr-03 6:22 
in MFC Version

Create your main and template resources. Create a class for each of them, CMainDlg and CTemplateDlg.
In InitInstance(), launch your maindlg with a
CMainDlg dlg;
dlg.DoModal();


In the CMainDlg::OnInitDialog()
Create your dlgs like this :
CTemplateDlg dlg1;
dlg1.Create(...); // You can customize it (Name, size, ... after creating it, sinceit will show only after the <code>OnInitDialog</code> returns.)


do this for each dlg to set their special features. If they are all identical, you can create a table of 8 CDTemplateDlg and loop on them to launch them one after another.

Would be the same if the main dialog was from a doc/view architecture (SDI may be better in this case). In the CMainFrame::PreCreateWindow function, launch the 8 dialogs as explained.

In Win32, it is a little bit more complicated to get this, but it is nearly the same, except you will have to catch the Winodws messages by yourself.

~RaGE();
GeneralRe: Create Multiple Windows Pin
Paul Farry14-Apr-03 11:30
professionalPaul Farry14-Apr-03 11:30 
GeneralLoadIcon question Pin
Jump_Around14-Apr-03 1:24
Jump_Around14-Apr-03 1:24 
GeneralRe: LoadIcon question Pin
Martyn Pearson14-Apr-03 5:33
Martyn Pearson14-Apr-03 5:33 
GeneralRe: LoadIcon question Pin
Rage14-Apr-03 6:36
professionalRage14-Apr-03 6:36 
GeneralRe: For Rage Pin
Toni7814-Apr-03 9:53
Toni7814-Apr-03 9:53 
GeneralRe: For Rage Pin
Jump_Around14-Apr-03 11:14
Jump_Around14-Apr-03 11:14 
GeneralRe: For Rage Pin
Martyn Pearson14-Apr-03 23:51
Martyn Pearson14-Apr-03 23:51 
GeneralRe: For Rage Pin
Jump_Around15-Apr-03 1:06
Jump_Around15-Apr-03 1:06 
GeneralGDI+ Pin
Emiliano14-Apr-03 1:18
Emiliano14-Apr-03 1:18 
GeneralRe: GDI+ Pin
Zdeslav Vojkovic14-Apr-03 1:54
Zdeslav Vojkovic14-Apr-03 1:54 
GeneralRe: GDI+ Pin
Anonymous14-Apr-03 3:37
Anonymous14-Apr-03 3:37 
GeneralImport data file as a Matrix Pin
calgonit14-Apr-03 1:06
calgonit14-Apr-03 1:06 
GeneralRe: Import data file as a Matrix Pin
Rage14-Apr-03 2:56
professionalRage14-Apr-03 2:56 
GeneralConverting an icon into a bitmap Pin
Nicolas Bonamy14-Apr-03 0:18
Nicolas Bonamy14-Apr-03 0:18 
GeneralRe: Converting an icon into a bitmap Pin
Liorsh14-Apr-03 0:44
Liorsh14-Apr-03 0:44 
GeneralRe: Converting an icon into a bitmap Pin
Nicolas Bonamy14-Apr-03 1:30
Nicolas Bonamy14-Apr-03 1:30 
GeneralRe: Converting an icon into a bitmap Pin
Iain Clarke, Warrior Programmer14-Apr-03 0:49
Iain Clarke, Warrior Programmer14-Apr-03 0:49 

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.