![]() |
Splitter Window Rows Show/Hide Issue |
Post Reply
|
| Author | |
sand1212
Newbie
Joined: 29 March 2007 Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Topic: Splitter Window Rows Show/Hide IssuePosted: 22 April 2007 at 10:03pm |
|
Hi,
I couldn't find multiple show/hide example in Splitter Window.
So I want to konw how to Hide multiple rows and show rows.
when I override HideRow method It error occured in RecalcLayout().
void HideRow()
{
ASSERT_VALID(this);
int i; if (m_bHide) { return; } // hide all Rows int nRow; for (nRow = 1; nRow < m_nRows; ++nRow ) { CWnd* pPaneHide = GetPane(nRow, 0); ASSERT(pPaneHide != NULL); pPaneHide->ShowWindow(SW_HIDE);
pPaneHide->SetDlgCtrlID(AFX_IDW_PANE_FIRST + m_nRows * 16 + nRow); } m_pRowInfo[0].nIdealSize += m_pRowInfo[1].nCurSize;
RecalcLayout();
}
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2007 at 1:21am |
|
Hi,
You also need to change m_nRows value.
m_nRows = 1;
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |