Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Size Of Dynamic Splitter Window

Status
Not open for further replies.

moonoo

Programmer
May 17, 2000
62
US
Hi,
I am trying to create simple dynamic splitter window
with 2 Rows and 1 Cols in the Frames ClasseLs OnCrateClient() function . I am fixing the sizes if the two rows and
calling the RecalcLayout() function to fix the sizes .
But its not working and its always showing the first row as zero size and i have to drag the scroll bar to make
it visible ..How do i initiaize hights of both the rows at start up ...
The Code i am using is
splitterdyn.Create (this, 2, 1, CSize ( 115,115),
p ) ;

// Get the hight of the window
CRect rect;
GetClientRect( &rect );
// Initialize the row hights
splitterdyn.SetRowInfo( 0,rect.Height()/2, 5);
splitterdyn.SetRowInfo( 1,rect.Height()/2, 5);
splitterdyn.RecalcLayout();
Please help me..
Regards

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top