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

C / C++ / MFC

 
GeneralRe: how to build a dialog like vista or windows 7 Pin
zhanghui543224-Aug-09 15:22
zhanghui543224-Aug-09 15:22 
Questionclass instantiation Pin
paolosh19-Aug-09 22:12
paolosh19-Aug-09 22:12 
AnswerRe: class instantiation Pin
Cedric Moonen19-Aug-09 22:22
Cedric Moonen19-Aug-09 22:22 
GeneralRe: class instantiation Pin
paolosh19-Aug-09 22:30
paolosh19-Aug-09 22:30 
GeneralRe: class instantiation Pin
Cedric Moonen19-Aug-09 22:45
Cedric Moonen19-Aug-09 22:45 
GeneralRe: class instantiation Pin
paolosh20-Aug-09 3:07
paolosh20-Aug-09 3:07 
GeneralRe: class instantiation Pin
CPallini19-Aug-09 23:07
mveCPallini19-Aug-09 23:07 
GeneralRe: class instantiation Pin
paolosh19-Aug-09 22:36
paolosh19-Aug-09 22:36 
GeneralRe: class instantiation Pin
Cedric Moonen19-Aug-09 22:42
Cedric Moonen19-Aug-09 22:42 
AnswerRe: class instantiation Pin
Maximilien20-Aug-09 1:50
Maximilien20-Aug-09 1:50 
GeneralRe: class instantiation Pin
paolosh20-Aug-09 3:04
paolosh20-Aug-09 3:04 
QuestionTimer without CWnd Pin
Kiriko19-Aug-09 21:58
Kiriko19-Aug-09 21:58 
AnswerRe: Timer without CWnd Pin
Adam Roderick J19-Aug-09 22:02
Adam Roderick J19-Aug-09 22:02 
AnswerRe: Timer without CWnd Pin
Randor 19-Aug-09 22:16
professional Randor 19-Aug-09 22:16 
AnswerRe: Timer without CWnd Pin
Nishad S19-Aug-09 22:21
Nishad S19-Aug-09 22:21 
AnswerRe: Timer without CWnd Pin
Ahmed Charfeddine19-Aug-09 22:27
Ahmed Charfeddine19-Aug-09 22:27 
AnswerRe: Timer without CWnd Pin
KarstenK19-Aug-09 22:46
mveKarstenK19-Aug-09 22:46 
QuestionMFC Dialog-based Document with multiple forms using VC++6 Pin
Raymond Cowin19-Aug-09 21:39
Raymond Cowin19-Aug-09 21:39 
AnswerRe: MFC Dialog-based Document with multiple forms using VC++6 [modified] Pin
Adam Roderick J19-Aug-09 21:59
Adam Roderick J19-Aug-09 21:59 
GeneralRe: MFC Dialog-based Document with multiple forms using VC++6 Pin
Raymond Cowin20-Aug-09 2:32
Raymond Cowin20-Aug-09 2:32 
AnswerRe: MFC Dialog-based Document with multiple forms using VC++6 Pin
Cedric Moonen19-Aug-09 22:02
Cedric Moonen19-Aug-09 22:02 
I guess by "forms" you are talking about a dialog, right ? It is a bit confusing because, in general, the term "forms" relate to managed C++ or C# (AFAIK). If you are 100% that you are doing pure C++ (well, with VC6 I guess that will be the case), then you have to create a new dialog and open that dialog.

To do so, create a new dialog resource in your resource files and open the class wizard. When doing so, it will ask you if you want to create a new class to associate with the resource and you have to say yes.
You can then use this new dialog class in your code and open the dialog by calling the DoModal() method.

You might want to look for more information by googling for dialog and MFC.

EDIT: by the way, choosing between an SDI app or a dialog based app really depends on what you want to do. If you want your calculator top open in a new window (new dialog), and you don't have something like data to be saved (the 'document'), the it is better to stick to a dialog based application because it is easier and you won't need all the stuff provided by an SDI app.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: MFC Dialog-based Document with multiple forms using VC++6 Pin
Raymond Cowin20-Aug-09 2:28
Raymond Cowin20-Aug-09 2:28 
GeneralRe: MFC Dialog-based Document with multiple forms using VC++6 Pin
Cedric Moonen20-Aug-09 2:32
Cedric Moonen20-Aug-09 2:32 
GeneralRe: MFC Dialog-based Document with multiple forms using VC++6 Pin
Raymond Cowin20-Aug-09 2:36
Raymond Cowin20-Aug-09 2:36 
GeneralRe: MFC Dialog-based Document with multiple forms using VC++6 Pin
Raymond Cowin20-Aug-09 3:14
Raymond Cowin20-Aug-09 3:14 

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.