Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global Variables Pin
Christian Graus15-Nov-02 10:56
protectorChristian Graus15-Nov-02 10:56 
GeneralRe: Global Variables Pin
Anders Molin15-Nov-02 14:01
professionalAnders Molin15-Nov-02 14:01 
GeneralRe: Global Variables Pin
Christian Graus15-Nov-02 14:27
protectorChristian Graus15-Nov-02 14:27 
GeneralRe: Global Variables Pin
ian mariano15-Nov-02 19:23
ian mariano15-Nov-02 19:23 
GeneralSplitter Window Question Pin
work_to_live15-Nov-02 9:44
work_to_live15-Nov-02 9:44 
GeneralRe: Splitter Window Question Pin
work_to_live15-Nov-02 20:37
work_to_live15-Nov-02 20:37 
GeneralRe: Splitter Window Question Pin
Gary R. Wheeler16-Nov-02 4:00
Gary R. Wheeler16-Nov-02 4:00 
GeneralRe: Splitter Window Question Pin
work_to_live16-Nov-02 5:56
work_to_live16-Nov-02 5:56 
That's what I've done, and it works perfectly when you grab the document window, and resize it. Let me try to explain again, what my problem is...

A little background...
My MDI application uses 4 views in 4 static splitter windows in a single single frame window to display my the data. Most of the time, you're working in one or two of these views, and don't really care to see what's in the other ones. The user can move the splitter bar(s), and size the window as necessary, which is normal behavior. What's annoying about the standard implementation of the splitter windows, is if you resize the window, some views remain the same size, while others change their size to fill the new (larger or small) window. You can observe this behavior by firing up Visual Studio, and resizing the application.

To get around this problem, I added a toolbar button (freeze) the user can click on that is handled by the MDI child window. It calculates the relative sizes of each of the splitter windows by virtue of the functions you mentioned (GetRowInfo, SetRowInfo...), and stores the result for later use by RecalcLayout whenever the Frame Window is resized. It all works perfectly. If you manually resize the windows such that only 3 split windows are visible, click the "freeze" button, you can now resize the frame window, and the 3 views are redrawn with the same relative sizing. I was very happy, but then I got dangerous... I added some additional buttons to the toolbar that allow the user to select the more common sets of views. When I click on them, I set up the variables RecalcLayout will use to redraw the window in a manner consistent with the layout button selected. The only thing is, I have to manually resize the window with the mouse to display the frame window with the new set of views (a picture would be worth a thousand words).

What I want to be able to do is have the frame window redraw it's client area with the sizing of the splitter windows programmatically, instead of requiring the user to go through the additional step of resizing the window. One solution would be to do something (send a message...?) to cause RecalcLayout to execute, but I can't find it.

I hope that's a little more clear... Smile | :)
GeneralRe: Splitter Window Question Pin
Gary R. Wheeler17-Nov-02 1:38
Gary R. Wheeler17-Nov-02 1:38 
GeneralRe: Splitter Window Question Pin
work_to_live18-Nov-02 10:17
work_to_live18-Nov-02 10:17 
GeneralRe: Splitter Window Question Pin
Gary R. Wheeler18-Nov-02 14:52
Gary R. Wheeler18-Nov-02 14:52 
QuestionHow to reboot computer in VC++? Pin
Tida15-Nov-02 9:21
Tida15-Nov-02 9:21 
AnswerRe: How to reboot computer in VC++? Pin
Joaquín M López Muñoz15-Nov-02 9:27
Joaquín M López Muñoz15-Nov-02 9:27 
GeneralRe: How to reboot computer in VC++? Pin
Tim Smith15-Nov-02 10:36
Tim Smith15-Nov-02 10:36 
GeneralRe: How to reboot computer in VC++? Pin
Philip Fitzsimons15-Nov-02 11:04
Philip Fitzsimons15-Nov-02 11:04 
GeneralRe: How to reboot computer in VC++? Pin
Alvaro Mendez15-Nov-02 11:42
Alvaro Mendez15-Nov-02 11:42 
QuestionDoc-View: using same document in two programs? Pin
Tom Welch15-Nov-02 8:46
Tom Welch15-Nov-02 8:46 
AnswerRe: Doc-View: using same document in two programs? Pin
Neville Franks15-Nov-02 9:32
Neville Franks15-Nov-02 9:32 
Questionit does not work what to do? Pin
imran_rafique15-Nov-02 8:45
imran_rafique15-Nov-02 8:45 
AnswerRe: it does not work what to do? Pin
Christian Graus15-Nov-02 8:59
protectorChristian Graus15-Nov-02 8:59 
GeneralRe: it does not work what to do? Pin
imran_rafique15-Nov-02 14:12
imran_rafique15-Nov-02 14:12 
GeneralRe: it does not work what to do? Pin
Christian Graus15-Nov-02 14:28
protectorChristian Graus15-Nov-02 14:28 
AnswerRe: it does not work what to do? Pin
NormDroid15-Nov-02 9:04
professionalNormDroid15-Nov-02 9:04 
GeneralRe: it does not work what to do? Pin
Christian Graus15-Nov-02 10:14
protectorChristian Graus15-Nov-02 10:14 
GeneralRe: it does not work what to do? Pin
NormDroid15-Nov-02 22:16
professionalNormDroid15-Nov-02 22:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.