CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    14

    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]



  2. #2
    Join Date
    May 1999
    Location
    WA
    Posts
    65

    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
  •  





Click Here to Expand Forum to Full Width

Featured