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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIalogs 1

Status
Not open for further replies.

ferryjenny

Technical User
Nov 22, 2000
24
GB
Hi I was wondering if anybody could help me with a problem. I am creating a dialog based program and dont know how to make the dialogs the full size of the scren when I run the program. Any help with this would be almost life saving.

Thanks
 
Open dialog window.
Go to "VIEW, FULL SCREEN".
You can now make the dialog as big as you want by "pulling" the tabs.
Hit escape.
Hit the switch on the left side of the toolbar at the bottom to see what the screen will look like.
Repeat the above to readjust until you are satisfied.

Paul
 
Well,the Paul's answer is not guaranteed for differet screen areas(640*480,800*600,...).For a more generic way:
Open the "OnInitDialog" member function of your dialog box class(add the message hendler if there is no OnInitDialog),add the following code just before returning the function
"ShowWindow(SW_SHOWMAXIMIZED);"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top