Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I don't understand the value of a token strtok_s Pin
jkirkerx25-Oct-11 6:52
professionaljkirkerx25-Oct-11 6:52 
GeneralRe: I don't understand the value of a token strtok_s Pin
Richard MacCutchan25-Oct-11 7:07
mveRichard MacCutchan25-Oct-11 7:07 
QuestionSplitter with fixed size Pin
Dialecticus24-Oct-11 8:28
Dialecticus24-Oct-11 8:28 
AnswerRe: Splitter with fixed size Pin
App_24-Oct-11 9:04
App_24-Oct-11 9:04 
GeneralRe: Splitter with fixed size Pin
Dialecticus24-Oct-11 9:30
Dialecticus24-Oct-11 9:30 
AnswerRe: Splitter with fixed size Pin
TheGreatAndPowerfulOz24-Oct-11 9:51
TheGreatAndPowerfulOz24-Oct-11 9:51 
GeneralRe: Splitter with fixed size Pin
Dialecticus24-Oct-11 10:04
Dialecticus24-Oct-11 10:04 
AnswerRe: Solution: use CSplitterWnd::SetRowInfo Pin
Goto_Label_24-Oct-11 11:18
Goto_Label_24-Oct-11 11:18 
First read Minimum size splitter

then try:


CSplitterWnd::SetRowInfo (horizontal)

Call this member function to set a new minimum height and ideal height for a row. The row minimum value determines when the row 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.

C#
void CMyFrame::OnSize(UINT nType, int cx, int cy) 
{
	if(::IsWindow(m_wndSplitter.m_hWnd) && ::IsWindow(m_wndSplitter2.m_hWnd))
	{
		m_wndSplitter.SetRowInfo(0, cy*2/3, 10);
		m_wndSplitter.SetRowInfo(1, cy/3, 10);

		m_wndSplitter2.SetColumnInfo(0, cx/4, 10);
		m_wndSplitter2.SetColumnInfo(1, cx*3/4, 10);
			
		RecalcLayout();
	}
}





CSplitterWnd::SetColumnInfo (verticle)

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.
Example

C#
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);
      m_wndSplitter.RecalcLayout();
   }
}




CSplitterWnd::RecalcLayout

Call this member function to correctly redisplay the splitter window after you have adjusted row and column sizes with the SetRowInfo and SetColumnInfo member functions. If you change row and column sizes as part of the creation process before the splitter window is visible, it is not necessary to call this member function.
GeneralRe: Solution: use CSplitterWnd::SetRowInfo Pin
Dialecticus24-Oct-11 22:48
Dialecticus24-Oct-11 22:48 
AnswerRe: Splitter with fixed size Pin
TheGreatAndPowerfulOz25-Oct-11 5:06
TheGreatAndPowerfulOz25-Oct-11 5:06 
GeneralRe: Splitter with fixed size Pin
Dialecticus25-Oct-11 6:14
Dialecticus25-Oct-11 6:14 
Questionhow to Add the help file in SDI Application Pin
sarfaraznawaz23-Oct-11 21:01
sarfaraznawaz23-Oct-11 21:01 
AnswerRe: how to Add the help file in SDI Application Pin
Richard MacCutchan23-Oct-11 22:38
mveRichard MacCutchan23-Oct-11 22:38 
AnswerRe: How to call the html help api Pin
App_24-Oct-11 6:25
App_24-Oct-11 6:25 
QuestionSetCurrentDirectory Pin
sarfaraznawaz23-Oct-11 19:42
sarfaraznawaz23-Oct-11 19:42 
AnswerRe: SetCurrentDirectory Pin
tolw23-Oct-11 21:58
tolw23-Oct-11 21:58 
AnswerRe: SetCurrentDirectory Pin
App_24-Oct-11 2:58
App_24-Oct-11 2:58 
Questionworking with byte arrays Pin
jkirkerx22-Oct-11 8:58
professionaljkirkerx22-Oct-11 8:58 
AnswerRe: working with byte arrays Pin
Chuck O'Toole22-Oct-11 9:35
Chuck O'Toole22-Oct-11 9:35 
GeneralRe: working with byte arrays Pin
jkirkerx22-Oct-11 15:46
professionaljkirkerx22-Oct-11 15:46 
AnswerRe: working with byte arrays Pin
Albert Holguin22-Oct-11 12:02
professionalAlbert Holguin22-Oct-11 12:02 
GeneralRe: working with byte arrays Pin
jkirkerx22-Oct-11 15:51
professionaljkirkerx22-Oct-11 15:51 
AnswerRe: working with byte arrays Pin
Richard MacCutchan22-Oct-11 21:46
mveRichard MacCutchan22-Oct-11 21:46 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 8:07
professionaljkirkerx23-Oct-11 8:07 
GeneralRe: working with byte arrays Pin
Richard MacCutchan23-Oct-11 8:26
mveRichard MacCutchan23-Oct-11 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.