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!

Sizing form-based views

Status
Not open for further replies.

dmh

Programmer
Jun 6, 2000
1
GB
I am having trouble with sizing the windows of a form-based application. The view inherits from the CFormView class (as opposed to CView)and consists of a simple dialog that is popped up for every new document that is created. The problem is that I cannot seem to specify the size of the dialog that is popped up and thus have to scroll to see all the controls. I have tried overriding the CFormView create function so that I can specify my own RECT coordinates, but it still uses a default-sized window when the view is popped up. There does not seem to be any easy wasy to fix this - can anyone help?<br><br>Cheers,<br>Dan
 
Dear Dan,<br><br>Take a look at ResizeParentToFit() member function.<br><br>Hope this helps<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top