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!

Fixing the Size of the Rows of the Dynamic Splitter Window

Status
Not open for further replies.

moonoo

Programmer
May 17, 2000
62
US
Hi ,
I am using a Dynamic Splitter window with 2 Rows and 1 Column . The Parent of the Dynamic Splitter window .
I am fixing the rows of the Dynamic Splitter window
and calling the RecalcLayout() to update the row
information of the Dynamic Splitter window . But
it is always showing the size of the first row in the
dynamic splitter window..
// creating the parent splitter window
// with 1 row and 2 cols
splitter.CreateStatic ( this, 1, 2 ) ;
splitter.SetColumnInfo ( 0, 100,20) ;
splitter.CreateView ( 0, 1, RUNTIME_CLASS ( textview ), CSize ( 0, 0 ), p ) ;

// Creating the dynamic splitter window
splitterdyn.Create ( &splitter, 2, 1, CSize ( 15,15), p ) ;
// Setting the Rowsize of the Dynamic
// splitter window but not working
splitterdyn.SetRowInfo( 0,50, 10);
splitterdyn.SetRowInfo( 1,50, 5);
splitterdyn.RecalcLayout();
An early help will be highly apprecated..
Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top