15,889,867 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by suncuigang (Top 4 by date)
suncuigang
21-May-13 21:01pm
View
I found , when I use CToolbar,there was no this problem.But when using CMFCToolbar, it had this problem. I will debug step by step to check!
I want creating a MDI project,which has"Tabbed documents", "a toobar in mainframe EnableDocking CBRS_ALIGN_ANY ",and"a toolbar in each childframe Docking CBRS_ALIGN_LEFT ". When creating a MDI project, I choose"Tabbed documents" ,"use a menu bar and toolbar","user-defined toolbars and images","Personalized menu behavior".It is used CMFCToolbar default.
suncuigang
19-May-13 23:20pm
View
Hello,Karstenk.
I don't know why the m_wndChildToolBar can not docking anyway, even though I add
m_wndChildToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockPane(&m_wndChildToolBar);
in CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
Do you know?
suncuigang
17-May-13 2:21am
View
in the mainframe.cpp,
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(/*theApp.m_bHiColorIcons ? IDR_MAINFRAME_256 :*/ IDR_MAINFRAME))
I used IDR_MAINFRAME,the icons are visible.
seems the toolbar colors in mainframe and childframe must be same!
Thanks, Karstenk!
suncuigang
16-May-13 20:44pm
View
IDR_TOOLBAR1 is new created. It i with height 15,width 16 ,16 colors. It is located in res/toolbar1.bmp.
but after debuging, the images in the toolbar of chindframe are invisible.