Click here to Skip to main content
15,903,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: To C or Not to C..... Pin
charlieg8-Dec-08 17:48
charlieg8-Dec-08 17:48 
QuestionUsing CMFCToolbar with CDialog Pin
rkshdixit8-Dec-08 3:28
rkshdixit8-Dec-08 3:28 
AnswerRe: Using CMFCToolbar with CDialog Pin
N B sowmi6-Jan-09 23:32
N B sowmi6-Jan-09 23:32 
GeneralRe: Using CMFCToolbar with CDialog Pin
rkshdixit9-Jan-09 21:19
rkshdixit9-Jan-09 21:19 
GeneralRe: Using CMFCToolbar with CDialog Pin
N B sowmi11-Jan-09 21:06
N B sowmi11-Jan-09 21:06 
GeneralRe: Using CMFCToolbar with CDialog Pin
rkshdixit12-Jan-09 21:35
rkshdixit12-Jan-09 21:35 
GeneralRe: Using CMFCToolbar with CDialog Pin
N B sowmi12-Jan-09 21:40
N B sowmi12-Jan-09 21:40 
GeneralRe: Using CMFCToolbar with CDialog Pin
Antonio Jose Cunha28-Apr-09 23:54
Antonio Jose Cunha28-Apr-09 23:54 
Hello!

Could someone tell me if a CMFCToolbar in a CDialog is correctly supported?

I can get my toolbar to work fine in a CDialog (inside a CView of an CMDIChildWndEx), but next time I open another document (MDI child window) the respective docked panes doesn't appear docked at all.
This happens after the Create() method of the toolbar. I suppose that settings of the Docking Manager (global?) are somehow changed during creation of the toolbar.

Below is the way I'm creating the toolbar:

BOOL MyCDialog::OnInitDialog() {
...
m_toolbar.EnableLargeIcons(FALSE);
m_toolbar.Create( this, AFX_DEFAULT_TOOLBAR_STYLE, IDR_TOOLBAR );
m_toolbar.LoadToolBar( IDR_TOOLBAR, 0, 0, TRUE /* Is locked */);

DWORD tbStyle = m_toolbar.GetPaneStyle();
tbStyle |= CBRS_TOOLTIPS | CBRS_FLYBY;
tbStyle &= ~(CBRS_GRIPPER | CBRS_SIZE_DYNAMIC | CBRS_BORDER_TOP | CBRS_BORDER_BOTTOM | CBRS_BORDER_LEFT | CBRS_BORDER_RIGHT);
m_toolbar.SetPaneStyle(tbStyle);

m_toolbar.SetOwner(this); //dont know if is really necessary
m_toolbar.SetRouteCommandsViaFrame(FALSE);
...
}

Thanks in advance.
Regards.
Questiontoolbar cutoff at the right end in MDI Pin
engilela8-Dec-08 2:51
engilela8-Dec-08 2:51 
QuestionHelp with Visual Studio C++ 2008 Pin
Member 18628468-Dec-08 2:37
Member 18628468-Dec-08 2:37 
AnswerRe: Help with Visual Studio C++ 2008 Pin
Hamid_RT8-Dec-08 2:39
Hamid_RT8-Dec-08 2:39 
AnswerRe: Help with Visual Studio C++ 2008 Pin
David Crow8-Dec-08 2:54
David Crow8-Dec-08 2:54 
QuestionScroll Bar Position control Pin
Member 46517418-Dec-08 2:11
Member 46517418-Dec-08 2:11 
AnswerRe: Scroll Bar Position control Pin
Graham Shanks8-Dec-08 11:54
Graham Shanks8-Dec-08 11:54 
GeneralRe: Scroll Bar Position control Pin
ramnathrn8-Dec-08 19:47
ramnathrn8-Dec-08 19:47 
GeneralRe: Scroll Bar Position control Pin
Graham Shanks9-Dec-08 3:53
Graham Shanks9-Dec-08 3:53 
Questionhow to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
puppya8-Dec-08 1:46
puppya8-Dec-08 1:46 
AnswerRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
Hamid_RT8-Dec-08 2:32
Hamid_RT8-Dec-08 2:32 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
puppya8-Dec-08 17:05
puppya8-Dec-08 17:05 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
puppya8-Dec-08 17:22
puppya8-Dec-08 17:22 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
Chandrasekharan P8-Dec-08 18:47
Chandrasekharan P8-Dec-08 18:47 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
Hamid_RT9-Dec-08 7:16
Hamid_RT9-Dec-08 7:16 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
puppya9-Dec-08 17:27
puppya9-Dec-08 17:27 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
Hamid_RT9-Dec-08 20:12
Hamid_RT9-Dec-08 20:12 
GeneralRe: how to show icons or bitmaps on popup menu and how to display bitmaps or icons on status bar for DIALOG BASED APPLICATION? Pin
puppya9-Dec-08 20:16
puppya9-Dec-08 20:16 

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.