Splitter Window Problem
-
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
-
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
First, if you want help you have to describe your problem. What is EXACTLY the problem ?
-
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
http://www.codeproject.com/splitter/SSplitter.asp[^] http://www.codeproject.com/splitter/splitterwindowtutorial.asp[^] ----------------- conglt
-
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
The splitter-Window part is easy: Define a
CSplitterWnd
inCMainFrame
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 handleOnUpdate
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 callsUpdateAllViews
. The BMP-display view now does load an show the file just selected. A splitter pane can use anyCWnd*
, not just aCView*
, 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.