Click here to Skip to main content
16,005,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Add scrollbars dynamically Pin
hari_honey7-Aug-08 1:54
hari_honey7-Aug-08 1:54 
GeneralRe: Add scrollbars dynamically Pin
SandipG 7-Aug-08 2:13
SandipG 7-Aug-08 2:13 
GeneralRe: Add scrollbars dynamically Pin
hari_honey20-Oct-08 20:21
hari_honey20-Oct-08 20:21 
Questionxml lib Pin
duta6-Aug-08 23:37
duta6-Aug-08 23:37 
AnswerRe: xml lib Pin
Cedric Moonen6-Aug-08 23:40
Cedric Moonen6-Aug-08 23:40 
GeneralRe: xml lib Pin
Prasann Mayekar7-Aug-08 22:46
Prasann Mayekar7-Aug-08 22:46 
AnswerRe: xml lib Pin
Hamid_RT7-Aug-08 23:42
Hamid_RT7-Aug-08 23:42 
Questionproviding implementation of virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) causes loss of style Pin
Sternocera6-Aug-08 23:15
Sternocera6-Aug-08 23:15 
Hello,

I've created an implementaion of virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) for my CFrameWnd derived class. In this way, I can later vary which view is displayed:
BOOL CChildWnd::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
	m_pReportView = new CReportView;
	m_pReportView->Create(NULL, NULL, 0L, CFrameWnd::rectDefault, this,
	VIEW_REPORT, pContext);
	SetActiveView(m_pReportView);
	m_pReportView->ShowWindow(SW_SHOW);
	m_pReportView->SetDlgCtrlID(AFX_IDW_PANE_FIRST);
        // More views...

	return TRUE;
}

This works, and works well. However, when I do this, for whatever reason I lose the Frame's previous style - The toolbar becomes sunken. Commenting out my implementation, the style immediately returns to normal. How can I do all this, while not having the toolbar become sunken?

Thanks,
Sternocera
AnswerRe: providing implementation of virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) causes loss of style Pin
Sternocera7-Aug-08 0:34
Sternocera7-Aug-08 0:34 
AnswerRe: providing implementation of virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) causes loss of style Pin
Sternocera7-Aug-08 0:42
Sternocera7-Aug-08 0:42 
QuestionHinding from TASK bar and font chang of caption TEXT Pin
himuskanhere6-Aug-08 23:00
himuskanhere6-Aug-08 23:00 
AnswerRe: Hinding from TASK bar and font chang of caption TEXT [modified] Pin
_AnsHUMAN_ 6-Aug-08 23:13
_AnsHUMAN_ 6-Aug-08 23:13 
Questionhow to increase speed of an audio file without changing the pitch... Pin
hariprasada6-Aug-08 22:43
hariprasada6-Aug-08 22:43 
AnswerRe: how to increase speed of an audio file without changing the pitch... Pin
Alan Balkany7-Aug-08 4:01
Alan Balkany7-Aug-08 4:01 
GeneralRe: how to increase speed of an audio file without changing the pitch... Pin
hariprasada7-Aug-08 20:42
hariprasada7-Aug-08 20:42 
GeneralRe: how to increase speed of an audio file without changing the pitch... Pin
Alan Balkany8-Aug-08 7:27
Alan Balkany8-Aug-08 7:27 
QuestionDoes it make sense - mutex locks twice ? Pin
dharani6-Aug-08 22:29
dharani6-Aug-08 22:29 
AnswerRe: Does it make sense - mutex locks twice ? Pin
Cedric Moonen6-Aug-08 22:35
Cedric Moonen6-Aug-08 22:35 
GeneralRe: Does it make sense - mutex locks twice ? Pin
dharani6-Aug-08 22:48
dharani6-Aug-08 22:48 
GeneralRe: Does it make sense - mutex locks twice ? Pin
Cedric Moonen6-Aug-08 23:10
Cedric Moonen6-Aug-08 23:10 
AnswerRe: Does it make sense - mutex locks twice ? Pin
Naveen6-Aug-08 22:35
Naveen6-Aug-08 22:35 
GeneralRe: Does it make sense - mutex locks twice ? Pin
Cedric Moonen6-Aug-08 23:14
Cedric Moonen6-Aug-08 23:14 
GeneralRe: Does it make sense - mutex locks twice ? Pin
Naveen6-Aug-08 23:19
Naveen6-Aug-08 23:19 
GeneralRe: Does it make sense - mutex locks twice ? Pin
dharani6-Aug-08 23:34
dharani6-Aug-08 23:34 
GeneralRe: Does it make sense - mutex locks twice ? Pin
Cedric Moonen6-Aug-08 23:38
Cedric Moonen6-Aug-08 23:38 

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.