Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Video Streaming SDK Pin
rjkg8-Dec-08 17:53
rjkg8-Dec-08 17:53 
QuestionVC++ 6.0 to VC++ 9.0 Code porting Pin
pratap19808-Dec-08 8:06
pratap19808-Dec-08 8:06 
AnswerRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
Stuart Dootson8-Dec-08 9:52
professionalStuart Dootson8-Dec-08 9:52 
GeneralRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
pratap19808-Dec-08 10:27
pratap19808-Dec-08 10:27 
GeneralRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
Stuart Dootson8-Dec-08 16:56
professionalStuart Dootson8-Dec-08 16:56 
AnswerRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
Michael Dunn8-Dec-08 9:59
sitebuilderMichael Dunn8-Dec-08 9:59 
GeneralRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
pratap19808-Dec-08 10:48
pratap19808-Dec-08 10:48 
QuestionQuestion about certificates Pin
Hans Dietrich8-Dec-08 6:06
mentorHans Dietrich8-Dec-08 6:06 
AnswerRe: Question about certificates Pin
Randor 8-Dec-08 13:01
professional Randor 8-Dec-08 13:01 
QuestionTo C or Not to C..... Pin
charlieg8-Dec-08 5:37
charlieg8-Dec-08 5:37 
AnswerRe: To C or Not to C..... Pin
Jijo.Raj8-Dec-08 5:49
Jijo.Raj8-Dec-08 5:49 
AnswerRe: To C or Not to C..... Pin
Code-o-mat8-Dec-08 5:54
Code-o-mat8-Dec-08 5:54 
AnswerRe: To C or Not to C..... Pin
toxcct8-Dec-08 7:29
toxcct8-Dec-08 7:29 
QuestionRe: To C or Not to C..... Pin
CPallini8-Dec-08 9:02
mveCPallini8-Dec-08 9:02 
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 

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.