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. Form View Splitter

Form View Splitter

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

    What I need to do is create a form view SDI app that has two different forms seperated by a splitter control. Well maybe I do. What I need is a top window that is stationary and a lower window that the user can scroll. What it is is a form that I want the header to always stay on top and in view. Just like some excel sheets do. Is this possible? What is the easiest way of implimenting this? I already have an SDI form view with a splitter control but the 2 panes are of the same window. I have already done a few searches but I think I am looking for the wrong thing. Thanks for your help. Darroll Not one person lives in the present. Only the past. I can prove it.

    C 1 Reply Last reply
    0
    • D DarrollWalsh

      What I need to do is create a form view SDI app that has two different forms seperated by a splitter control. Well maybe I do. What I need is a top window that is stationary and a lower window that the user can scroll. What it is is a form that I want the header to always stay on top and in view. Just like some excel sheets do. Is this possible? What is the easiest way of implimenting this? I already have an SDI form view with a splitter control but the 2 panes are of the same window. I have already done a few searches but I think I am looking for the wrong thing. Thanks for your help. Darroll Not one person lives in the present. Only the past. I can prove it.

      C Offline
      C Offline
      Chris Hambleton
      wrote on last edited by
      #2

      Check out: Reusable base class for SplitterWnd here in CodeProject. What you can do is not allow the top form to be resized in the class by handling WM_SIZE appropriately, and just swap out the bottom pane. "If at any time I announce that a nation or kingdom is to be uprooted, torn down and destroyed, and if that nation I warned repents of its evil, then I will relent and not inflict on it the disaster I had planned. And if at another time I announce that a nation or kingdom is to be built up and planted, and if it does evil in my sight and does not obey me, then I will reconsider the good I had intended to do for it." -- Jeremiah 18:7-10 (God, commenting on the value of the United Nations)

      D 1 Reply Last reply
      0
      • C Chris Hambleton

        Check out: Reusable base class for SplitterWnd here in CodeProject. What you can do is not allow the top form to be resized in the class by handling WM_SIZE appropriately, and just swap out the bottom pane. "If at any time I announce that a nation or kingdom is to be uprooted, torn down and destroyed, and if that nation I warned repents of its evil, then I will relent and not inflict on it the disaster I had planned. And if at another time I announce that a nation or kingdom is to be built up and planted, and if it does evil in my sight and does not obey me, then I will reconsider the good I had intended to do for it." -- Jeremiah 18:7-10 (God, commenting on the value of the United Nations)

        D Offline
        D Offline
        DarrollWalsh
        wrote on last edited by
        #3

        Thank you. I was so new at SDI FormView apps, too many Dialog apps, I missed that whole section. Thank you. Darroll Not one person lives in the present. Only the past. I can prove it.

        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