Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Object Oriented Problem. Pin
Stephen Hewitt24-May-10 14:08
Stephen Hewitt24-May-10 14:08 
GeneralRe: Object Oriented Problem. Pin
RobNO24-May-10 14:11
professionalRobNO24-May-10 14:11 
JokeRe: Object Oriented Problem. Pin
Peter_in_278024-May-10 14:13
professionalPeter_in_278024-May-10 14:13 
GeneralRe: Object Oriented Problem. Pin
Stephen Hewitt24-May-10 14:14
Stephen Hewitt24-May-10 14:14 
GeneralRe: Object Oriented Problem. Pin
ThatsAlok25-May-10 1:53
ThatsAlok25-May-10 1:53 
AnswerRe: Object Oriented Problem. Pin
Peter_in_278024-May-10 14:12
professionalPeter_in_278024-May-10 14:12 
AnswerRe: Object Oriented Problem. Pin
Sarath C24-May-10 14:14
Sarath C24-May-10 14:14 
QuestionNot able to drag the pane when creating a splitter in MDI Applicaton. Pin
janaswamy uday24-May-10 5:44
janaswamy uday24-May-10 5:44 
Hi All,

I am trying to get a splitter window for MDI when a Menu Item in Menu is clicked. The splitter window is been created but when i am trying to drag that Splitter it is not able to split also it is not performing the events of the pane. (i.e) if in Pane2 of the splitter i am having a Button Control it is not been handled.

Help me out!

Thanks,
Uday.

Here is the Code.
-----------------

void CMainFrame::OnMytreeTree()
{
CCreateContext ctx;
ctx.m_pNewViewClass = RUNTIME_CLASS(CudayView);
// GetActiveDocument() call before you destroy m_splitter.
ctx.m_pCurrentDoc = GetActiveDocument();
//ASSERT(ctx.m_pCurrentDoc!=NULL);

// m_pSplitter !=NULL when there is a visible splitter.
if (m_pSplitter)
{
// Destroy splitter window.
delete m_pSplitter;
m_pSplitter = NULL;

// Create and initialize CMyView.
SetActiveView((CView*)CreateView(&ctx));
GetActiveView()->OnInitialUpdate();
}
else
{
if(m_pSplitter == NULL)
{
//MDIGetActive()->DestroyWindow();
// Create new splitter window.
m_pSplitter = new CSplitterWnd;
if (!m_pSplitter->CreateStatic(this, 1, 2))
{
TRACE0("Can't create splitter window.\n");
return;
}
else
{
if ((!m_pSplitter->CreateView(0, 0,
RUNTIME_CLASS(CMyTreeView),
CSize(200, 0), &ctx))
||(!m_pSplitter->CreateView(0, 1,
RUNTIME_CLASS(CFirstView),
CSize(500, 0), &ctx)))
{
TRACE0("Can't create one of the splitter panes.\n");
return;
}

// Initialize the two panes (each containing a view
// associated with the current document).
((CView*)m_pSplitter->GetPane(0, 0))->OnInitialUpdate();
((CView*)m_pSplitter->GetPane(0, 1))->OnInitialUpdate();
SetActiveView((CView*)m_pSplitter->GetPane(0, 0));
}
}
}
// Redisplay frame.
RecalcLayout();
}
Questionusing std::find in while loop Pin
b-rad31124-May-10 5:09
b-rad31124-May-10 5:09 
AnswerRe: using std::find in while loop Pin
josda100024-May-10 5:15
josda100024-May-10 5:15 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 5:19
b-rad31124-May-10 5:19 
GeneralRe: using std::find in while loop Pin
josda100024-May-10 5:27
josda100024-May-10 5:27 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 5:28
b-rad31124-May-10 5:28 
AnswerRe: using std::find in while loop Pin
David Crow24-May-10 5:28
David Crow24-May-10 5:28 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 5:45
b-rad31124-May-10 5:45 
AnswerRe: using std::find in while loop Pin
Richard MacCutchan24-May-10 5:33
mveRichard MacCutchan24-May-10 5:33 
AnswerRe: using std::find in while loop Pin
Aescleal24-May-10 6:01
Aescleal24-May-10 6:01 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 10:31
b-rad31124-May-10 10:31 
QuestionDo I have to instantiate a copy of IRichEditOle before using EM_GETOLEINTERFACE Pin
ForNow24-May-10 4:48
ForNow24-May-10 4:48 
AnswerRe: Do I have to instantiate a copy of IRichEditOle before using EM_GETOLEINTERFACE Pin
Code-o-mat24-May-10 5:25
Code-o-mat24-May-10 5:25 
GeneralRe: Do I have to instantiate a copy of IRichEditOle before using EM_GETOLEINTERFACE Pin
ForNow24-May-10 6:48
ForNow24-May-10 6:48 
GeneralRe: Do I have to instantiate a copy of IRichEditOle before using EM_GETOLEINTERFACE Pin
Code-o-mat24-May-10 7:28
Code-o-mat24-May-10 7:28 
GeneralRe: Do I have to instantiate a copy of IRichEditOle before using EM_GETOLEINTERFACE Pin
ForNow24-May-10 17:26
ForNow24-May-10 17:26 
GeneralRe: Do I have to instantiate a copy of IRichEditOle before using EM_GETOLEINTERFACE Pin
Code-o-mat24-May-10 21:34
Code-o-mat24-May-10 21:34 
QuestionListview Pin
wael_r24-May-10 3:19
wael_r24-May-10 3:19 

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.