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. Splitter Window Problem

Splitter Window Problem

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
4 Posts 4 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.
  • A Offline
    A Offline
    anjita
    wrote on last edited by
    #1

    In SDI I want to have a splitter window whose one pane consist of the BMP file names and the other pane shows the current selected corresponding files. I am just a Beginner Please if anyone could help me out... in solving this problem -- modified at 6:08 Friday 21st April, 2006

    C L J 3 Replies Last reply
    0
    • A anjita

      In SDI I want to have a splitter window whose one pane consist of the BMP file names and the other pane shows the current selected corresponding files. I am just a Beginner Please if anyone could help me out... in solving this problem -- modified at 6:08 Friday 21st April, 2006

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      First, if you want help you have to describe your problem. What is EXACTLY the problem ?

      1 Reply Last reply
      0
      • A anjita

        In SDI I want to have a splitter window whose one pane consist of the BMP file names and the other pane shows the current selected corresponding files. I am just a Beginner Please if anyone could help me out... in solving this problem -- modified at 6:08 Friday 21st April, 2006

        L Offline
        L Offline
        Le Thanh Cong
        wrote on last edited by
        #3

        http://www.codeproject.com/splitter/SSplitter.asp[^] http://www.codeproject.com/splitter/splitterwindowtutorial.asp[^] ----------------- conglt

        1 Reply Last reply
        0
        • A anjita

          In SDI I want to have a splitter window whose one pane consist of the BMP file names and the other pane shows the current selected corresponding files. I am just a Beginner Please if anyone could help me out... in solving this problem -- modified at 6:08 Friday 21st April, 2006

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          The splitter-Window part is easy: Define a CSplitterWnd in CMainFrame with the two panes you want. Place the Views you want on the pane. The program logic part is a litte more involved: Have your view-classes handle OnUpdate to redraw themselves. When your file-system view changes the selection, it sets the newly selecxted filename in a document variable, and the documents setter-routine calls UpdateAllViews. The BMP-display view now does load an show the file just selected. A splitter pane can use any CWnd*, not just a CView*, which may help you in your task, as you can place any control directly on the pane.


          "We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation." -- Caius Petronius, Roman Consul, 66 A.D.

          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