15,902,492 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 DFaeuster (Top 9 by date)
DFaeuster
26-Feb-14 1:29am
View
It's a self written ActiveX Control similar to a toolbar (some buttons etc.)
But I've found a solution for my redrawing problem in the meanwhile by calling "RedrawWindow()"
DFaeuster
25-Feb-14 1:34am
View
Nope, unfortunately not. The article you posted is about creating such a dropdown button, but this is not my problem. I try to disable only the main part of the button but NOT the arrow.
DFaeuster
24-Feb-14 9:18am
View
Sorry for the late response but was stuck in another project.
I tried both of your hints but none of them helped me to solve the problem.
But thanks for your time.
DFaeuster
24-Jan-14 8:24am
View
I did not know that I also need a toolbar resource if I dynamically create the toolbar. But let me check it with a clean project. I will set-up everything again since I tried a lot of different approaches. Maybe they are disturbing each other in some way.
DFaeuster
24-Jan-14 5:42am
View
This did not help either.
Btw: why should I define the toolbar and its bitmap in the MFC app? Should not it be the way that an ActiveX control comes with all stuff it needs?
DFaeuster
24-Jan-14 1:56am
View
Nope, this did not solve the problem.
DFaeuster
12-Dec-13 4:31am
View
Ok, it's working now.
After considering your comments, espacially with the re-definition of the class, I searched for the "CDTXBBAR.h" file on my complete hard drive and found the header file twice in different projects of my solution.
One was completely empty and the other one was the correct one.
So, when I compiled the "TextControl"-project itself it took the correct header. But during the compilation of the other project, that makes use of "TextControl" the empty file was taken.
Due to the order of the additional include directories the empty file was in front of the correct one. So after deletion of the empty file all went fine.
Now one of you might ask where the empty file comes from. I accidentially generated the "CDTXBBAR.h" file in the wrong project. Afterwards I deleted it in VS with "Remove" but not with "Delete". So the file was removed from the solution but still on the hard drive. Violá
DFaeuster
11-Dec-13 10:15am
View
1. There is no "#pragma once" but the normal include guard
2. In "stdafx.h" are the includes for CWnd for example.
Here is the complete content
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxadv.h>
#include <afxcmn.h> // MFC new controls
DFaeuster
11-Dec-13 9:55am
View
I changed the order of the public and protected block but still the same errors that are pointing to the line with CDTXBBAR m_txBBar;
Show More