craig knutson
May 3rd, 1999, 03:42 PM
... 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
cknutson@flash.net
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
cknutson@flash.net