15,910,981 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 BarryPearlman (Top 9 by date)
BarryPearlman
3-Feb-14 20:42pm
View
The main reason is that I don't want to learn yet another language. MFC, albeit it old fashioned, works for my needs. Besides, XML looks like a lot of typing to me. Give me C++ and pointers. I feel that Microsoft keeps coming up with new languages that do the same thing as the ones they are replacing because it lets them get developers to fork out another $500 plus for the "latest and the greatest".
Barry
BarryPearlman
16-Aug-12 14:48pm
View
Eugen -
The line of code marked "very important" solved the problem of displaying text in Pane 3; I believe that I understand the concept.
I did run into a couple of problems however. The first concerns the code paragraphs:
// free strings before freeing array of elements
for (int i = 0; i < m_nCount; i++)
{
VERIFY(SetPaneText(i, NULL, FALSE));
SetPaneIcon(i, NULL, FALSE);
}
// first allocate array for panes and copy initial data
if (!AllocElements(nCount, sizeof(CMFCStatusBarPaneInfo)))
return FALSE;
When the status bar is first created, there are no strings to cancel and the solution bombs out when it hits the "VERIFY" macro; it is looking to free a string that hasn't been created yet. Reversing the two blocks of code solves that problem.
The second problem concerns:
virtual CWnd* GetMessageBar() { return NULL; } // no tracing of menu/toolbar commands in the first pane
It appears that when you mark the application for context sensitive help, it automatically wants to display AFX_IDS_IDLEMESSAGE (supplied in string table) when the application enters the idle loop.
I let the wizard allow context sensitive help; I wish I had known then and I would have not done it. I need to find out how I can undo that.
Thanks for all of your help,
Barry
BarryPearlman
15-Aug-12 16:07pm
View
As usual, scope requirements have changed in the more elaborate direction; I do plan on using your revision and I will try to write it up and submit it to Code Project.
As an aside, I can't find a reference to _GetPanePtr(nIdx) and it appears that m_nCount is a member of something, but what is the something? Is it the number of physical panes?
Thanks,
Barry
BarryPearlman
15-Aug-12 10:46am
View
Sorry, but it still doesn't work Eugen, and debugging shows that the text is placed in the pane information structure in the case of pane 0 and the last pane, Pane 2.
I am wondering if Microsoft decided that the last pane (right) is not intended for text, but rather would be used exclusively for the date and/or keyboard key status information and hence the internal pane coding will not support text. It is above my pay grade to be able to look at the source code and confirm or deny this.
I have tried both suggestions, but with negative results. I do have a few ideas which are unconventional, and will take some time to code and debug. If I am successfull, I will try to write it up and submit it as a seperate article.
Any other ideas are welcome, and thanks to those that have submitted input so far.
BarryPearlman
14-Aug-12 11:45am
View
Done
BarryPearlman
23-Jan-12 16:46pm
View
Again, thanks Ernesto. It took a few hours to get familiar with the editor, but things are now working. Also, thanks for the sample application; personally, I do better at things if I have an example in front of me.
It amazes me (but surprises me very little) that Microsoft put out a product requiring 32 bit bitmata and two editors, neither one of which are of any use. You would think that they have enough cash in the bank that they could hire a few technical writers and make things easier on the rest of us.
Mucho gracis y via con Dios. (That is unfortuneatly all of the spanish I remember from high school :-))
BarryPearlman
22-Jan-12 12:17pm
View
Ernesto -
First of all, you are the first person I have ever communicated with from your part of the world. Thanks for all of the help so far.
I have found the problem - as stated earlier in this thread, the bitmap must be 32 bit. I confirmed this by changing my ImageList back to IDB_FILELARGE and things work as they should, however not the right images.
Question now is, what editor do I use to create 32 bit bitmaps? The one that is internal to Visual Studio 10 will not let me save it any larger than 24 bit. If I try to modify IDB_FILELARGE, the tools are greyed out.
I can draw an image list in the "external editor" (MS Paint); it does not have the option of saving it as 32 bit. Do I have to modify or renamr IDB_FILELARGE in Paint, then create the images I want?
Thanks,
Barry
BarryPearlman
21-Jan-12 15:05pm
View
Thanks, that got me started and I now hae a button with a bitmap struck on it. I have two more questions.
1. The button ascts as if it is DISABLED. Do I have to tell it that it IS ACTIVE? If so, somewhere in the Ribbon Bar editor, or by code?
2. The button that the bitmap is attached to does not seem to recognize a mask. Background is RGB(0, 0, 0). What did I miss>
Thanks again,
Barry
BarryPearlman
27-Mar-11 21:20pm
View
Sorry about that.
CJBK_III_SB is a class derived directly from CMFCStatusBar.
CJBK_III_SB* p_SBCls = new CJBK_III_SB;
p_StatusBar == p_SBCls (Typo on my part. It should have been p_SBCls all along).
Hope that this helps
Show More