|
-
April 5th, 2006, 11:17 AM
#1
[RESOLVED] Add Maximize property before creating a CDialog herited window
Hi,
In my code, i have a customed CDialog class, for some reasons in a customed CBitmapButton, I need to add a maximized property on my cdialog before each other component (button, edit...) is created.
Adding "ShowWindow(SW_SHOWMAXIMIZED);" in OnInitDialog function isn't what i'm looking for
thanks for your help.
-
April 5th, 2006, 11:43 AM
#2
Re: Add Maximize property before creating a CDialog herited window
ok, i found what i wanted here
-
April 5th, 2006, 11:45 AM
#3
Re: Add Maximize property before creating a CDialog herited window
Add style WS_MAXIMIZE after dialog creation but before showing it - add this line in your dialog OnInitDialog handler after CDialog::OnInitDialog call:
Code:
<your_dialog_class>::OnInitDialog()
{
CDialog::OnInitDialog();
..........
ModifyStyle(0, WS_MAXIMIZE);
return TRUE;
}
-
April 5th, 2006, 11:53 AM
#4
Re: [RESOLVED] Add Maximize property before creating a CDialog herited window
I already tried it, but, window stay the same with this
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|