Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic


Call to set the specified column information.

void SetColumnInfo(
   int col,
   int cxIdeal,
   int cxMin 



Specifies a splitter window column.


Specifies an ideal width for the splitter window column in pixels.


Specifies a minimum width for the splitter window column in pixels.

Call this member function to set a new minimum width and ideal width for a column. The column minimum value determines when the column will be too small to be fully displayed.

When the framework displays the splitter window, it lays out the panes in columns and rows according to their ideal dimensions, working from the upper-left to the lower-right corner of the splitter window's client area.

void CChildFrame::OnSize(UINT nType, int cx, int cy) 
   CMDIChildWnd::OnSize(nType, cx, cy);

   CRect rect;
   GetWindowRect( &rect );
   if( m_bSplitterCreated )  // m_bSplitterCreated set in OnCreateClient
      m_wndSplitter.SetColumnInfo(0, rect.Width()/2, 10);
      m_wndSplitter.SetColumnInfo(1, rect.Width()/2, 10);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.