[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.
Re: Add Maximize property before creating a CDialog herited window
ok, i found what i wanted here
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;
}
Re: [RESOLVED] Add Maximize property before creating a CDialog herited window
I already tried it, but, window stay the same with this :(