Click here to Skip to main content
16,012,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win32 api Pin
John M. Drescher29-Aug-03 9:43
John M. Drescher29-Aug-03 9:43 
GeneralRe: Win32 api Pin
Ravi Bhavnani29-Aug-03 10:00
professionalRavi Bhavnani29-Aug-03 10:00 
GeneralRe: Win32 api Pin
Rickard Andersson2029-Aug-03 12:50
Rickard Andersson2029-Aug-03 12:50 
GeneralRe: Win32 api Pin
Ravi Bhavnani29-Aug-03 12:55
professionalRavi Bhavnani29-Aug-03 12:55 
GeneralRe: Win32 api Pin
John M. Drescher29-Aug-03 13:32
John M. Drescher29-Aug-03 13:32 
GeneralRe: Win32 api Pin
Joe Woodbury29-Aug-03 19:05
professionalJoe Woodbury29-Aug-03 19:05 
GeneralRe: Win32 api Pin
Michael Dunn29-Aug-03 19:11
sitebuilderMichael Dunn29-Aug-03 19:11 
GeneralConfused With Splitters and Views Pin
rjahrman29-Aug-03 8:11
rjahrman29-Aug-03 8:11 
I'm _very_ new to the concept of having multiple views with a splitter. Anyway, I was reading the article at "http://www.codeproject.com/useritems/splitterwindowtutorial.asp" and have a few questions. Since the author isn't looking at the mini-messageboard, I'll post here.

Anyway, the author showed code like this:

if ( !m_mainSplitter.CreateView( 0, 0, RUNTIME_CLASS(CSplitterWindowTutorialView), CSize(cr.Width()/2, cr.Height()), pContext ) ) <br />
{ <br />
	MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR );<br />
	return FALSE; <br />
}<br />
<br />
if ( !m_mainSplitter.CreateView( 0, 1, RUNTIME_CLASS(CSplitterWindowTutorialView), CSize(cr.Width()/2, cr.Height()), pContext ) ) <br />
{ <br />
	MessageBox( "Error setting up splitter frames!", "Init Error!", MB_OK | MB_ICONERROR );<br />
	return FALSE; <br />
}<br />
<br />
m_bInitSplitter = TRUE;


And then said to "include your document class in your view class header just before: #endif // _MSC_VER > 1000.".

So, if I wanted to have a CTreeView on the left and a CListView on the right, what would that chunk of code look like? And what would I put in the header? Thanks.
GeneralRe: Confused With Splitters and Views Pin
Larry J. Siddens29-Aug-03 10:14
Larry J. Siddens29-Aug-03 10:14 
GeneralRe: Confused With Splitters and Views Pin
rjahrman29-Aug-03 15:12
rjahrman29-Aug-03 15:12 
GeneralRe: Confused With Splitters and Views Pin
Larry J. Siddens30-Aug-03 3:24
Larry J. Siddens30-Aug-03 3:24 
GeneralDialog question Pin
rpadrela29-Aug-03 7:13
rpadrela29-Aug-03 7:13 
GeneralRe: Dialog question Pin
Alexander M.,29-Aug-03 8:56
Alexander M.,29-Aug-03 8:56 
GeneralRe: Dialog question Pin
rpadrela29-Aug-03 10:40
rpadrela29-Aug-03 10:40 
GeneralRe: Dialog question Pin
rpadrela29-Aug-03 11:16
rpadrela29-Aug-03 11:16 
GeneralRe: Dialog question Pin
John M. Drescher29-Aug-03 11:51
John M. Drescher29-Aug-03 11:51 
GeneralRe: Dialog question Pin
l a u r e n29-Aug-03 10:58
l a u r e n29-Aug-03 10:58 
GeneralRe: Dialog question Pin
Ravi Bhavnani29-Aug-03 13:40
professionalRavi Bhavnani29-Aug-03 13:40 
GeneralMDI/SDI Program structure Pin
Mikey_E29-Aug-03 7:07
professionalMikey_E29-Aug-03 7:07 
GeneralRe: MDI/SDI Program structure Pin
Sidare29-Aug-03 7:38
Sidare29-Aug-03 7:38 
GeneralRe: MDI/SDI Program structure Pin
Mikey_E29-Aug-03 9:25
professionalMikey_E29-Aug-03 9:25 
GeneralName mangling Pin
Anonymous29-Aug-03 7:02
Anonymous29-Aug-03 7:02 
GeneralRe: Name mangling Pin
Larry J. Siddens29-Aug-03 10:17
Larry J. Siddens29-Aug-03 10:17 
GeneralRe: Name mangling Pin
Anonymous29-Aug-03 11:28
Anonymous29-Aug-03 11:28 
GeneralRe: Name mangling Pin
John M. Drescher29-Aug-03 11:48
John M. Drescher29-Aug-03 11:48 

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.