We help IT Professionals succeed at work.

Maximize a window on init

ris
ris asked
on
I have a CFrameWnd-derived class and I would like to have it maximize itself when it is initialized.  I tried adding the WS_MAXIMIZE flag to style member of the CREATESTRUCT in PreCreateWindow but that was ineffective.  I've been looking through the MSDN for a CWnd or CFrameWnd class function that maximizes the window, but I can't find one.  What can I do?
Comment
Watch Question

Commented:
Just call ShowWindow(SW_MAXIMIZE)
ris

Author

Commented:
Thanks, that was what I was looking for!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.