Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where AM I ? Pin
Garth J Lancaster18-May-04 12:29
professionalGarth J Lancaster18-May-04 12:29 
GeneralRe: Where AM I ? Pin
john john mackey18-May-04 13:17
john john mackey18-May-04 13:17 
QuestionExceptions after building for Release, but building for Debug mode is OK? Pin
jerry1211a18-May-04 11:12
jerry1211a18-May-04 11:12 
AnswerRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
Marcus Spitzmiller18-May-04 12:53
Marcus Spitzmiller18-May-04 12:53 
GeneralRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
jerry1211a18-May-04 14:27
jerry1211a18-May-04 14:27 
GeneralRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
Marcus Spitzmiller19-May-04 4:43
Marcus Spitzmiller19-May-04 4:43 
AnswerRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
David Crow19-May-04 4:11
David Crow19-May-04 4:11 
GeneralSplitter with a Form and a Document Pin
Charlie Curtis18-May-04 10:03
Charlie Curtis18-May-04 10:03 
Hi All,

Using some of the samples provided here and at CodeGuru I have mannaged to create a Split View with a Form (with a comboBox) and a Document View for the second pane. Now I need to gain access to the Document so it can be printed etc. The View for the Document is based on the CScrollView. What I need is to have the Document gain the focus and have the Menu change to the IDR_MYDOCTYPE. Can anyone shed some much needed light on this subject. Here is how I am creating the Split:

BOOL CECalSplitter::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
if (!m_wndSplitter.CreateStatic(this, 1, 2))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}

// add the first splitter pane - the default 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 second splitter pane - an input view in column 0
if (!m_wndSplitter.CreateView(0,0,
RUNTIME_CLASS(CFrmView), CSize(425,50),pContext))
{
TRACE0("Failed to create second pane\n");
return FALSE;
}

// activate the input view
SetActiveView((CView*)m_wndSplitter.GetPane(0,1));
return TRUE;
}


When the ComboBox is closed (All Items have been selected) the Document is then displayed. I.E. I am creating the document based on items selected which I am placing in specific points in the document.
Any help would be appreciated.
Thanks, Charlie
QuestionCan anyone help me understand this code better? Pin
BrockVnm18-May-04 9:57
BrockVnm18-May-04 9:57 
AnswerRe: Can anyone help me understand this code better? Pin
Christian Graus18-May-04 11:29
protectorChristian Graus18-May-04 11:29 
GeneralRe: Can anyone help me understand this code better? Pin
Ryan Binns18-May-04 18:39
Ryan Binns18-May-04 18:39 
Generali need to get the chat text of msm messanger Pin
Member 96792618-May-04 9:28
Member 96792618-May-04 9:28 
GeneralRe: i need to get the chat text of msm messanger Pin
Member 42102519-May-04 10:35
Member 42102519-May-04 10:35 
GeneralSerial Port Communication in WinXP (or NT/2000) Pin
AnotherProgrammer18-May-04 8:52
AnotherProgrammer18-May-04 8:52 
GeneralRe: Serial Port Communication in WinXP (or NT/2000) Pin
Antti Keskinen18-May-04 9:07
Antti Keskinen18-May-04 9:07 
GeneralRe: Serial Port Communication in WinXP (or NT/2000) Pin
AnotherProgrammer18-May-04 9:56
AnotherProgrammer18-May-04 9:56 
GeneralRe: Serial Port Communication in WinXP (or NT/2000) Pin
Antti Keskinen18-May-04 20:40
Antti Keskinen18-May-04 20:40 
GeneralRe: Serial Port Communication in WinXP (or NT/2000) Pin
closecall18-May-04 15:07
closecall18-May-04 15:07 
GeneralRe: Serial Port Communication in WinXP (or NT/2000) Pin
valikac18-May-04 16:51
valikac18-May-04 16:51 
GeneralHelp needed urgent! Pin
ben218-May-04 7:13
ben218-May-04 7:13 
GeneralRe: Help needed urgent! Pin
David Crow18-May-04 7:17
David Crow18-May-04 7:17 
GeneralRe: Help needed urgent! Pin
ben218-May-04 7:32
ben218-May-04 7:32 
GeneralRe: Help needed urgent! Pin
David Crow18-May-04 7:45
David Crow18-May-04 7:45 
Questionhow to change window icon Pin
vividtang18-May-04 7:01
vividtang18-May-04 7:01 
AnswerRe: how to change window icon Pin
David Crow18-May-04 7:15
David Crow18-May-04 7:15 

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.