|
-
May 3rd, 1999, 03:42 PM
#1
how to have a CDialog derived ...
... class "resize" itself?
i have an object derived from CDialog. it has a tabctrl on it. i have other dialogs that i am placing in the tabctrl.
in my CDialog's OnInitDialog() routine i can determine if the dialog needs to be resized so it will look nice with the tabctrl and the stuff that is in the first tabctrl page that will be displayed.
but i don't remember how to get the dialog to resize itself.
if this were a CView i would call
GetParentFrame()->MoveWindow(...);
from within the OnInitialUpdate() routine
but when i try that from the CDialog's OnInitDialog() routine, the call fails.
can someone give me some advice on how to do this?
thanks much!
craigk
[email protected]
-
May 3rd, 1999, 04:04 PM
#2
Re: how to have a CDialog derived ...
In the resource editor for your main dialog window, did you set the style from the "popup" style, to "resize"? If not, that could be the problem! Check it out! Hope this helps..
- Troy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|