Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: A string combination question Pin
Stephen Hewitt30-Sep-07 22:09
Stephen Hewitt30-Sep-07 22:09 
GeneralRe: A string combination question Pin
nethp102030-Sep-07 22:14
nethp102030-Sep-07 22:14 
GeneralRe: A string combination question Pin
Stephen Hewitt30-Sep-07 22:16
Stephen Hewitt30-Sep-07 22:16 
QuestionRe: A string combination question Pin
David Crow1-Oct-07 3:43
David Crow1-Oct-07 3:43 
AnswerRe: A string combination question Pin
Mark Salsbery1-Oct-07 5:38
Mark Salsbery1-Oct-07 5:38 
Questionshortcut for increase/decrease indent in vc++ IDE Pin
rp_suman30-Sep-07 14:42
rp_suman30-Sep-07 14:42 
AnswerRe: shortcut for increase/decrease indent in vc++ IDE Pin
Naveen30-Sep-07 17:37
Naveen30-Sep-07 17:37 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
chandu00430-Sep-07 19:47
chandu00430-Sep-07 19:47 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
rp_suman30-Sep-07 21:48
rp_suman30-Sep-07 21:48 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
chandu00430-Sep-07 23:24
chandu00430-Sep-07 23:24 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
David Crow1-Oct-07 3:46
David Crow1-Oct-07 3:46 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
rp_suman1-Oct-07 16:00
rp_suman1-Oct-07 16:00 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
rp_suman30-Sep-07 21:44
rp_suman30-Sep-07 21:44 
QuestionDouble Buffering in Custom Controls [modified] Pin
Leslie Sanford30-Sep-07 12:38
Leslie Sanford30-Sep-07 12:38 
AnswerRe: Double Buffering in Custom Controls Pin
Steve Echols30-Sep-07 17:45
Steve Echols30-Sep-07 17:45 
QuestionRe: Double Buffering in Custom Controls Pin
Mark Salsbery1-Oct-07 5:42
Mark Salsbery1-Oct-07 5:42 
AnswerRe: Double Buffering in Custom Controls Pin
Leslie Sanford1-Oct-07 6:03
Leslie Sanford1-Oct-07 6:03 
QuestionAccesing data from other dialog Pin
minike30-Sep-07 10:12
minike30-Sep-07 10:12 
AnswerRe: Accesing data from other dialog Pin
Naveen30-Sep-07 17:41
Naveen30-Sep-07 17:41 
AnswerRe: Accesing data from other dialog Pin
chandu00430-Sep-07 20:07
chandu00430-Sep-07 20:07 
AnswerRe: Accesing data from other dialog Pin
Cedric Moonen30-Sep-07 21:21
Cedric Moonen30-Sep-07 21:21 
AnswerRe: Accesing data from other dialog Pin
Hamid_RT1-Oct-07 19:58
Hamid_RT1-Oct-07 19:58 
QuestionCControlBar Pin
bhavacakra30-Sep-07 4:57
bhavacakra30-Sep-07 4:57 
In which method of MFC's CMDIFrameWnd or its clientarea (a subclassed CWnd of m_hWndMDIClient) should one create a simple CControlBar ?

I've tried it blindly (which is BAD practice I know):

BOOL ApplicationFrame::OnCreateClient(LPCREATESTRUCT lpCs,CCreateContext *pContext) {<br />
    BOOL r;<br />
    r = CreateClient(lpCs,NULL);<br />
    if(r) {<br />
        m_pToolbar = new Toolbar();<br />
        ASSERT(m_pToolbar);<br />
        ASSERT(this);<br />
        m_pToolbar->SetBarStyle(CBRS_ALIGN_TOP);<br />
        m_pToolbar->SetInPlaceOwner(this);<br />
    }<br />
    return r;<br />
}



Where:
class ApplicationFrame : public CMDIFrameWnd {<br />
//...<br />
}


but the control bar is not showing up (I can't see it even with spy++). What am I missing and how to do it right ?
AnswerRe: CControlBar Pin
Mark Salsbery30-Sep-07 6:37
Mark Salsbery30-Sep-07 6:37 
QuestionHow to select the first item in CListCtrl in Run Time (in the code ) ? Pin
Yanshof30-Sep-07 4:19
Yanshof30-Sep-07 4: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.