Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
NewsRe: basic string question Pin
Roland Pibinger3-Jul-06 9:01
Roland Pibinger3-Jul-06 9:01 
GeneralRe: basic string question Pin
Zac Howland3-Jul-06 9:12
Zac Howland3-Jul-06 9:12 
Questioncreating file, path name more than 300 characters Pin
Lokesh Murthy3-Jul-06 3:44
Lokesh Murthy3-Jul-06 3:44 
Questionmove data to sql db Pin
PhilWalker3-Jul-06 3:27
PhilWalker3-Jul-06 3:27 
QuestionTOOLTIP Pin
ashish dogra3-Jul-06 3:24
ashish dogra3-Jul-06 3:24 
AnswerRe: TOOLTIP Pin
Chris Losinger3-Jul-06 3:46
professionalChris Losinger3-Jul-06 3:46 
Questionhow to create a Splitter Window Pin
Uday Janaswamy3-Jul-06 3:13
Uday Janaswamy3-Jul-06 3:13 
AnswerRe: how to create a Splitter Window Pin
Tara143-Jul-06 3:46
Tara143-Jul-06 3:46 
Call OnCreateClient in you CMainFrame class and make the changes approprialtely.

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	// TODO: Add your specialized code here and/or call the base class

	// create a splitter with 1 row, 2 columns
	if (!m_wndSplitter.CreateStatic(this, 1, 2))
	{
		TRACE0("Failed to CreateStaticSplitter\n");
		return FALSE;
	}


	// add the second splitter pane - an input view in column 1
	if (!m_wndSplitter.CreateView(0, 1,
		pContext->m_pNewViewClass, CSize(0, 0), pContext))
	{
		TRACE0("Failed to create first pane\n");
		return FALSE;
	}

	// add the first splitter pane - the default view in column 0
	if (!m_wndSplitter.CreateView(0, 0,
		pContext->m_pNewViewClass, CSize(200, 0), pContext))
	{
		TRACE0("Failed to create second pane\n");
		return FALSE;
	}

	// activate the input view
	SetActiveView((CScrollView*)m_wndSplitter.GetPane(0,1));

	return true;
//	return CFrameWnd::OnCreateClient(lpcs, pContext);
}


Hope that helps.


Fortitudine Vincimus!

QuestionProcessing 'X' buttons message Pin
Tara143-Jul-06 3:12
Tara143-Jul-06 3:12 
AnswerRe: Processing 'X' buttons message Pin
Don Box3-Jul-06 3:33
Don Box3-Jul-06 3:33 
GeneralRe: Processing 'X' buttons message Pin
Tara143-Jul-06 3:35
Tara143-Jul-06 3:35 
AnswerRe: Processing 'X' buttons message Pin
Hamid_RT3-Jul-06 3:39
Hamid_RT3-Jul-06 3:39 
GeneralRe: Processing 'X' buttons message Pin
Tara143-Jul-06 3:43
Tara143-Jul-06 3:43 
GeneralRe: Processing 'X' buttons message Pin
Hamid_RT3-Jul-06 3:53
Hamid_RT3-Jul-06 3:53 
GeneralRe: Processing 'X' buttons message Pin
Tara143-Jul-06 5:01
Tara143-Jul-06 5:01 
QuestionProblem with CreateProcess Pin
rajeevktripathi3-Jul-06 2:13
rajeevktripathi3-Jul-06 2:13 
AnswerRe: Problem with CreateProcess Pin
Garth J Lancaster3-Jul-06 2:23
professionalGarth J Lancaster3-Jul-06 2:23 
AnswerRe: Problem with CreateProcess Pin
Viorel.3-Jul-06 2:30
Viorel.3-Jul-06 2:30 
AnswerRe: Problem with CreateProcess Pin
Viorel.3-Jul-06 2:47
Viorel.3-Jul-06 2:47 
AnswerRe: Problem with CreateProcess Pin
valikac3-Jul-06 6:44
valikac3-Jul-06 6:44 
Questionabout timer Pin
happy_ram3-Jul-06 1:53
happy_ram3-Jul-06 1:53 
AnswerRe: about timer Pin
Maximilien3-Jul-06 1:57
Maximilien3-Jul-06 1:57 
GeneralRe: about timer Pin
happy_ram3-Jul-06 2:00
happy_ram3-Jul-06 2:00 
AnswerRe: about timer Pin
see me3-Jul-06 2:02
see me3-Jul-06 2:02 
GeneralRe: about timer Pin
happy_ram3-Jul-06 2:18
happy_ram3-Jul-06 2:18 

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.