Print Page | Close Window

Splitter Window Rows Show/Hide Issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6951
Printed Date: 12 November 2025 at 5:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Splitter Window Rows Show/Hide Issue
Posted By: sand1212
Subject: Splitter Window Rows Show/Hide Issue
Date Posted: 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();
}



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net