Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Splitter Window Rows Show/Hide Issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Splitter Window Rows Show/Hide Issue

 Post Reply Post Reply
Author
Message
sand1212 View Drop Down
Newbie
Newbie
Avatar

Joined: 29 March 2007
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote sand1212 Quote  Post ReplyReply Direct Link To This Post Topic: Splitter Window Rows Show/Hide Issue
    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();
}
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.