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 drag the splitter windows in doc/view application

How to drag the splitter windows in doc/view application

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
3 Posts 3 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.
  • S Offline
    S Offline
    ss431
    wrote on last edited by
    #1

    I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me... ganesh

    A M 2 Replies Last reply
    0
    • S ss431

      I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me... ganesh

      A Offline
      A Offline
      aatul
      wrote on last edited by
      #2

      This is not possible. Instead you can have MDI and achive the required functionality.

      1 Reply Last reply
      0
      • S ss431

        I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me... ganesh

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Anything's possible :laugh: I can't write it for you, but I have used placeholder "view" windows as panes in a splitter window. The place holder window has two main jobs: Keeping a pane in the splitter, and resizing the actual pane on top of itself. To control flicker, the placeholder frame should only erase its background if there's not an actual pane on top of it. You can get as fancy as you want with the drag and drop. It's the same as any drag and drop - Detect mouse click, hittest to see if the cursor is in a drag area of the window, move the window until the mouse button released, and place the window at the destination. I hope this made sense and helps a bit. Mark

        "Go that way, really fast. If something gets in your way, turn."

        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