Nested CSplitterWnd('s) and CSize
-
Can someone explain to me how to get the Panes of a nested splitter window to size up correctly? I know that I should know this, but I can't figure it out. My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | ----------- ^bad graphic. :) The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down. Any explanation of how to do this would be great. Thanks, and sorry for the dumb question. :) Frank
-
Can someone explain to me how to get the Panes of a nested splitter window to size up correctly? I know that I should know this, but I can't figure it out. My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views. |---------| | | | | | | ----------- | | ----------- ^bad graphic. :) The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down. Any explanation of how to do this would be great. Thanks, and sorry for the dumb question. :) Frank
You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want. --Mike-- ================== The original message was: Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.
-----------
| |
-----------^bad graphic. :)
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. :)
Frank -
You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want. --Mike-- ================== The original message was: Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.
-----------
| |
-----------^bad graphic. :)
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. :)
FrankI did that...but row 0 was always 0 high. Then, all of a sudden I remembered something... CSplitterWnd::SetRowInfo(int row, int cyIdeal, int cyMin ); It worked. Thanks! Frank ================== The original message was: You set the initial size for each view in the splitter in the call to CSplitterWnd::CreateView(). For starters, try always passing a size of, say, 100x100. Then experiment with the numbers until you get the look you want.
--Mike--
==================
The original message was:Can someone explain to me how to get the Panes of a nested splitter window to size up correctly?
I know that I should know this, but I can't figure it out.
My splitter is 2 rows. Nested in the 1st row is 2 columns. So, three views.
-----------
| |
-----------^bad graphic. :)
The 2nd row always takes up the whole client area of the window. The nested portion is correct, once you drag the splitter bar down.
Any explanation of how to do this would be great.
Thanks, and sorry for the dumb question. :)
Frank