Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ed.Poore15-Feb-06 20:11
Ed.Poore15-Feb-06 20:11 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ryan Binns15-Feb-06 21:55
Ryan Binns15-Feb-06 21:55 
GeneralRe: Undefined symbol when compiling for Picotux Pin
Ed.Poore16-Feb-06 11:55
Ed.Poore16-Feb-06 11:55 
QuestionWin32 worth it? Pin
Zanathel15-Feb-06 10:58
Zanathel15-Feb-06 10:58 
AnswerRe: Win32 worth it? Pin
Michael Dunn15-Feb-06 12:03
sitebuilderMichael Dunn15-Feb-06 12:03 
GeneralRe: Win32 worth it? Pin
Ed K15-Feb-06 15:10
Ed K15-Feb-06 15:10 
GeneralRe: Win32 worth it? Pin
ThatsAlok16-Feb-06 2:46
ThatsAlok16-Feb-06 2:46 
GeneralRe: Win32 worth it? Pin
Blake Miller16-Feb-06 12:21
Blake Miller16-Feb-06 12:21 
GeneralRe: Win32 worth it? Pin
Blake Miller16-Feb-06 12:19
Blake Miller16-Feb-06 12:19 
AnswerRe: Win32 worth it? Pin
Ashutosh_shashi15-Feb-06 17:42
Ashutosh_shashi15-Feb-06 17:42 
GeneralRe: Win32 worth it? Pin
Zanathel16-Feb-06 3:25
Zanathel16-Feb-06 3:25 
QuestionDebug Assertion failed Pin
cuteee15-Feb-06 10:28
cuteee15-Feb-06 10:28 
QuestionRe: Debug Assertion failed Pin
David Crow16-Feb-06 3:29
David Crow16-Feb-06 3:29 
QuestionCPU usage 100% Pin
lynchspawn15-Feb-06 10:15
lynchspawn15-Feb-06 10:15 
AnswerRe: CPU usage 100% Pin
Andy Moore15-Feb-06 10:25
Andy Moore15-Feb-06 10:25 
AnswerRe: CPU usage 100% Pin
Stephen Hewitt15-Feb-06 11:29
Stephen Hewitt15-Feb-06 11:29 
AnswerRe: CPU usage 100% Pin
Michael Dunn15-Feb-06 12:04
sitebuilderMichael Dunn15-Feb-06 12:04 
Questionoperator overloading question Pin
civicrico2315-Feb-06 9:40
civicrico2315-Feb-06 9:40 
AnswerRe: operator overloading question Pin
mylzw15-Feb-06 12:42
mylzw15-Feb-06 12:42 
QuestionSocket:: FD_ACCEPT and FD_CONNECT event Pin
transoft15-Feb-06 6:01
transoft15-Feb-06 6:01 
AnswerRe: Socket:: FD_ACCEPT and FD_CONNECT event Pin
James R. Twine15-Feb-06 6:13
James R. Twine15-Feb-06 6:13 
QuestionSplitter window question... Pin
RobJones15-Feb-06 6:00
RobJones15-Feb-06 6:00 
AnswerRe: Splitter window question... Pin
RChin15-Feb-06 7:01
RChin15-Feb-06 7:01 
Try this:

Assuming that you want a view layout like this:
//////////////////////////////////////////
//+-----------+------------+
//|           |            |
//|           |            |
//|           |            |
//|           |            |
//|  view 1   |  view 2    |
//|           |            |
//|           |            |
//|           |            |
//|           |            |
//+-----------+------------+
//|   view 3               |
//|                        |
//+------------------------+
//

The trick is basically creating your splitter window within the other in order to get the right layout.

The first splitter divides your window into two rows. Then using a second splitter, subdivide the upper row into two columns.. and viola
<br />
if(!m_wndSplitter.CreateStatic(this, 2, 1))<br />
return FALSE;<br />
<br />
if(!m_wndSplitterB.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitter.IdFromRowCol(0,0)))<br />
return FALSE;<br />
<br />
if (!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CBottomView),CSize(100, 100), pContext))<br />
{	<br />
	TRACE0("Failed to create LeftView\n");<br />
	return FALSE;<br />
}<br />
<br />
if (!m_wndSplitterB.CreateView(0, 0, RUNTIME_CLASS(CLeftView),CSize(100, 100), pContext))<br />
{	<br />
	TRACE0("Failed to create LeftView\n");<br />
	return FALSE;<br />
}<br />
<br />
if (!m_wndSplitterB.CreateView(0, 1, RUNTIME_CLASS(CRightView),CSize(100, 100), pContext))<br />
{	<br />
	TRACE0("Failed to create LeftView\n");<br />
	return FALSE;<br />
}





I Dream of Absolute Zero

AnswerRe: Splitter window question... Pin
David Crow15-Feb-06 7:03
David Crow15-Feb-06 7:03 
QuestionEvents and classes Pin
masnu15-Feb-06 4:29
masnu15-Feb-06 4:29 

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.