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

C / C++ / MFC

 
GeneralCreating a maximixed dialog Pin
monrobot1325-Oct-02 9:24
monrobot1325-Oct-02 9:24 
I have a dialog based app that I want to start maximized but it just doesn't want to happen. I'm using the following code:
BOOL CToolTabsDlg::PreCreateWindow(CREATESTRUCT& cs) 
{
	cs.style &= WS_MAXIMIZE;
		
	return CDialog::PreCreateWindow(cs);
}
Does this not work on dialogs or am I doing something completely wrong?

Something I just tried was putting a breakpoint on the cs.style statement just to see if the value changed and my program didn't even break. Obviously I'm doing something wrong but I'm not sure what it is.

Any help would be much appreciated.

- monrobot13
GeneralRe: Creating a maximixed dialog Pin
Ravi Bhavnani25-Oct-02 9:53
professionalRavi Bhavnani25-Oct-02 9:53 
GeneralRe: Creating a maximixed dialog Pin
monrobot1325-Oct-02 12:52
monrobot1325-Oct-02 12:52 
GeneralRe: Creating a maximixed dialog Pin
includeh1025-Oct-02 21:47
includeh1025-Oct-02 21:47 
GeneralRe: Creating a maximixed dialog Pin
Didaa25-Oct-02 21:32
Didaa25-Oct-02 21:32 
GeneralRe: Creating a maximixed dialog Pin
Gary R. Wheeler26-Oct-02 3:34
Gary R. Wheeler26-Oct-02 3:34 
GeneralResize Dialog Box via Code :: MFC Pin
valikac25-Oct-02 9:21
valikac25-Oct-02 9:21 
GeneralRe: Resize Dialog Box via Code :: MFC Pin
monrobot1325-Oct-02 9:29
monrobot1325-Oct-02 9:29 
GeneralRe: Resize Dialog Box via Code :: MFC Pin
valikac25-Oct-02 9:32
valikac25-Oct-02 9:32 
Generalspeed: loading bitmap Pin
Anonymous25-Oct-02 8:21
Anonymous25-Oct-02 8:21 
GeneralRe: speed: loading bitmap Pin
devvvy25-Oct-02 8:23
devvvy25-Oct-02 8:23 
GeneralRe: speed: loading bitmap Pin
Paul M Watt25-Oct-02 8:44
mentorPaul M Watt25-Oct-02 8:44 
GeneralRe: speed: loading bitmap Pin
Anonymous25-Oct-02 12:55
Anonymous25-Oct-02 12:55 
GeneralRe: speed: loading bitmap Pin
Paul M Watt25-Oct-02 21:19
mentorPaul M Watt25-Oct-02 21:19 
GeneralTemplate confusion Pin
Todd Smith25-Oct-02 8:09
Todd Smith25-Oct-02 8:09 
GeneralRe: Template confusion Pin
Navin25-Oct-02 10:30
Navin25-Oct-02 10:30 
Generalmapping and unmapping a resource Pin
Tom Wright25-Oct-02 7:36
Tom Wright25-Oct-02 7:36 
Generalflexgrid Pin
Anthony988725-Oct-02 7:05
Anthony988725-Oct-02 7:05 
QuestionDon't show all resource icons in explorer? Pin
Anonymous25-Oct-02 6:00
Anonymous25-Oct-02 6:00 
AnswerRe: Don't show all resource icons in explorer? Pin
Anonymous25-Oct-02 22:08
Anonymous25-Oct-02 22:08 
Generalhtmlhelp question Pin
ns25-Oct-02 5:59
ns25-Oct-02 5:59 
GeneralRe: htmlhelp question Pin
Ravi Bhavnani25-Oct-02 7:02
professionalRavi Bhavnani25-Oct-02 7:02 
GeneralRe: htmlhelp question Pin
Atlantys25-Oct-02 7:06
Atlantys25-Oct-02 7:06 
GeneralRe: htmlhelp question Pin
Ravi Bhavnani25-Oct-02 7:13
professionalRavi Bhavnani25-Oct-02 7:13 
GeneralRe: htmlhelp question Pin
Atlantys25-Oct-02 8:20
Atlantys25-Oct-02 8:20 

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.