Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

maximize a dialog window

Status
Not open for further replies.

oinky

Programmer
Oct 29, 2001
45
0
0
US
Hi my main application is a dialog. I want the form to be automatically maximized when the application starts up. Does any1 know how to do this? I tried putting

m_nCmdShow = SW_SHOWMAXIMIZED;

before the DoModal() call, but that didnt work. Any ideas? Thanks.
 
have you tried calling
ShowWindow(SW_MAXIMIZE)
in the OnInitDialog handler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top