Click here to Skip to main content
15,559,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChange Button Image on mouse over Pin
AbhiHcl23-May-10 22:50
AbhiHcl23-May-10 22:50 
AnswerRe: Change Button Image on mouse over Pin
namaskaaram24-May-10 0:35
namaskaaram24-May-10 0:35 
QuestionHow to Convert CString to char array? Pin
TechAvtar23-May-10 20:14
TechAvtar23-May-10 20:14 
AnswerRe: How to Convert CString to char array? Pin
Yusuf23-May-10 20:28
Yusuf23-May-10 20:28 
AnswerRe: How to Convert CString to char array? Pin
MS_TJ23-May-10 20:43
MS_TJ23-May-10 20:43 
AnswerRe: How to Convert CString to char array? Pin
Iain Clarke, Warrior Programmer23-May-10 21:56
Iain Clarke, Warrior Programmer23-May-10 21:56 
AnswerRe: How to Convert CString to char array? Pin
Aescleal24-May-10 5:17
Aescleal24-May-10 5:17 
QuestionSplitter Window for MDI. Pin
janaswamy uday23-May-10 17:04
janaswamy uday23-May-10 17:04 
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();
}
QuestionHow to include a dll and a lib files into a VS project Pin
Schehaider_Aymen23-May-10 12:18
Schehaider_Aymen23-May-10 12:18 
AnswerRe: How to include a dll and a lib files into a VS project Pin
Garth J Lancaster23-May-10 13:36
professionalGarth J Lancaster23-May-10 13:36 
GeneralRe: How to include a dll and a lib files into a VS project [modified] Pin
Schehaider_Aymen23-May-10 13:43
Schehaider_Aymen23-May-10 13:43 
GeneralRe: How to include a dll and a lib files into a VS project Pin
Garth J Lancaster23-May-10 13:56
professionalGarth J Lancaster23-May-10 13:56 
GeneralRe: How to include a dll and a lib files into a VS project Pin
Schehaider_Aymen23-May-10 13:57
Schehaider_Aymen23-May-10 13:57 
QuestionStarting a password protected NT Service [modified] Pin
pubis23-May-10 10:13
pubis23-May-10 10:13 
AnswerRe: Starting a password protected NT Service Pin
Aescleal23-May-10 10:59
Aescleal23-May-10 10:59 
GeneralRe: Starting a password protected NT Service Pin
pubis23-May-10 11:15
pubis23-May-10 11:15 
GeneralRe: Starting a password protected NT Service Pin
Aescleal23-May-10 11:24
Aescleal23-May-10 11:24 
GeneralRe: Starting a password protected NT Service Pin
pubis23-May-10 11:56
pubis23-May-10 11:56 
QuestionWM_QUERYENDSESSION problem on C++ Builder 2010 Pin
Member 88968923-May-10 8:06
Member 88968923-May-10 8:06 
AnswerRe: WM_QUERYENDSESSION problem on C++ Builder 2010 Pin
ARopo24-May-10 7:26
ARopo24-May-10 7:26 
GeneralRe: WM_QUERYENDSESSION problem on C++ Builder 2010 Pin
Member 88968924-May-10 14:36
Member 88968924-May-10 14:36 
QuestionC++ String Creation Pin
sikas_Cisco23-May-10 5:57
sikas_Cisco23-May-10 5:57 
AnswerRe: C++ String Creation Pin
Dr.Walt Fair, PE23-May-10 6:18
professionalDr.Walt Fair, PE23-May-10 6:18 
AnswerRe: C++ String Creation Pin
John R. Shaw23-May-10 8:21
John R. Shaw23-May-10 8:21 
GeneralRe: C++ String Creation Pin
sikas_Cisco23-May-10 9:55
sikas_Cisco23-May-10 9:55 

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.