Click here to Skip to main content
15,917,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using Timer with non-dialog class Pin
aangerma26-Oct-11 9:42
aangerma26-Oct-11 9:42 
GeneralRe: Using Timer with non-dialog class Pin
Chuck O'Toole26-Oct-11 9:47
Chuck O'Toole26-Oct-11 9:47 
GeneralRe: Using Timer with non-dialog class Pin
aangerma26-Oct-11 10:17
aangerma26-Oct-11 10:17 
QuestionI don't understand the value of a token strtok_s Pin
jkirkerx24-Oct-11 13:42
professionaljkirkerx24-Oct-11 13:42 
AnswerRe: I don't understand the value of a token strtok_s Pin
Software_Developer24-Oct-11 14:07
Software_Developer24-Oct-11 14:07 
GeneralRe: I don't understand the value of a token strtok_s Pin
Richard MacCutchan24-Oct-11 21:45
mveRichard MacCutchan24-Oct-11 21:45 
AnswerRe: I don't understand the value of a token strtok_s Pin
Malli_S24-Oct-11 18:55
Malli_S24-Oct-11 18:55 
GeneralRe: I don't understand the value of a token strtok_s Pin
jkirkerx25-Oct-11 5:54
professionaljkirkerx25-Oct-11 5:54 
AnswerRe: I don't understand the value of a token strtok_s Pin
Richard MacCutchan24-Oct-11 21:44
mveRichard MacCutchan24-Oct-11 21:44 
GeneralRe: I don't understand the value of a token strtok_s Pin
jkirkerx25-Oct-11 6:11
professionaljkirkerx25-Oct-11 6:11 
GeneralRe: I don't understand the value of a token strtok_s Pin
Richard MacCutchan25-Oct-11 6:41
mveRichard MacCutchan25-Oct-11 6:41 
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 

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.