Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Resize a Control inside a CSplitterWnd?

Resize a Control inside a CSplitterWnd?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Franken
    wrote on last edited by
    #1

    Hi, does anybody know how to resize a control or a CFormView view which contains the control when the view is nested in a CSplitterWnd Pane? I want the control to adapt its size when the size of the splitter window changes. Thanks, Frank.

    V 1 Reply Last reply
    0
    • F Franken

      Hi, does anybody know how to resize a control or a CFormView view which contains the control when the view is nested in a CSplitterWnd Pane? I want the control to adapt its size when the size of the splitter window changes. Thanks, Frank.

      V Offline
      V Offline
      Viorel
      wrote on last edited by
      #2

      I think you should add to your form a handler for WM_SIZE message (i.e. OnSize function) and do the adjustments of child controls here.

      F 1 Reply Last reply
      0
      • V Viorel

        I think you should add to your form a handler for WM_SIZE message (i.e. OnSize function) and do the adjustments of child controls here.

        F Offline
        F Offline
        Franken
        wrote on last edited by
        #3

        Thank you, it works. As in all other resizing dialogs. I don't know, why I've got problems with this. Somehow I thought that my CMDIChildFrame should handle the WM_Size message.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups