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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to vary the size of the view using SDI formview?

how to vary the size of the view using SDI formview?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
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.
  • C Offline
    C Offline
    coda_x
    wrote on last edited by
    #1

    i created an SDI using formview. i wish to use half of the formview for visualization purposes, and the other half for placing dialog controls. how do i change the view size?

    R 1 Reply Last reply
    0
    • C coda_x

      i created an SDI using formview. i wish to use half of the formview for visualization purposes, and the other half for placing dialog controls. how do i change the view size?

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      To change the default size of a Form view or scroll view, you can call: SetScaleToFitSize(CSize(cx, cy)); I normally do this in the OnSize() to make sure I get no scrollbars after re-positioning all the controls in the view. Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

      C 1 Reply Last reply
      0
      • R Roger Allen

        To change the default size of a Form view or scroll view, you can call: SetScaleToFitSize(CSize(cx, cy)); I normally do this in the OnSize() to make sure I get no scrollbars after re-positioning all the controls in the view. Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

        C Offline
        C Offline
        coda_x
        wrote on last edited by
        #3

        thanx for replying. actually what i meant was how to set the visual view - white screen for drawing to half the window size so that i can place controls on the other half which is not on white blackground.:doh:

        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