How to change the size of one pane in the SplitterWnd ?
-
Hi: I create a splitterwnd in my application with 2 rows ,1 colume.I want to change the size of one pane in the SplitterWnd(such as the view in first row),and I can't find a function in MSDN to do so. How could I do? Thanks Benben
CSplitterWnd::SetRowInfo()
,CSplitterWnd::SetColumnInfo()
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
CSplitterWnd::SetRowInfo()
,CSplitterWnd::SetColumnInfo()
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
Ryan Binns wrote: CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo() Wow!:) I looked at them but I didn't really bother reading the info, so my suggestion was to use MoveWindow. Would that work? // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
-
Ryan Binns wrote: CSplitterWnd::SetRowInfo(), CSplitterWnd::SetColumnInfo() Wow!:) I looked at them but I didn't really bother reading the info, so my suggestion was to use MoveWindow. Would that work? // Afterall, I realized that even my comment lines have bugs When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
Toni78 wrote: MoveWindow. Would that work? No. The sizes are cached in the
CSplitterWnd
class, so bypassing them would produce errors later on.Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
Toni78 wrote: MoveWindow. Would that work? No. The sizes are cached in the
CSplitterWnd
class, so bypassing them would produce errors later on.Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
CSplitterWnd::SetRowInfo()
,CSplitterWnd::SetColumnInfo()
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
But it seems that these function only works for the first row. when I try CSplitterWnd::SetRowInfo(0,10,10) , it works well. but if I try CSplitterWnd::SetRowInfo(1,10,10),nothing happen Thanks Benben
Did you call
RecalcLayout()
?
My opinions may have changed, but not the fact that I am right.