15,867,756 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 ErnestoNet (Top 14 by date)
ErnestoNet
17-Oct-12 7:34am
View
About the border of the rich edit, there's an article for that too!
http://www.codeguru.com/cpp/w-d/dislog/miscellaneous/article.php/c8729/XP-Theme-Support-for-Rich-Edit-and-Custom-Controls.htm
Some help by Microsoft here...
http://msdn.microsoft.com/en-us/library/dd373487(v=vs.85).aspx
ErnestoNet
17-Oct-12 7:23am
View
Writing your own CEdit derived control will be a lot of work (even with the help of the article). You're right to use the rich edit till you have time.
ErnestoNet
28-Jul-12 10:47am
View
Right. +5.
I don't know if singularity is written in C#....
http://geekswithblogs.net/Podwysocki/archive/2008/03/11/120477.aspx
http://singularity.codeplex.com/
Also, tinyOS:
http://www.hanselman.com/blog/TinyOSBlastFromThePast.aspx
ErnestoNet
6-Jun-12 9:49am
View
sm_img.ReleaseDC();
You're right, I forgot to release the DC.
With the line you added it should work.
ErnestoNet
1-Feb-12 7:17am
View
Sorry, English is not my natural language. I meant that you may need another CFormView (instead of a CView).
ErnestoNet
31-Jan-12 8:37am
View
You're welcome. I had the same problem in one of my applications. Tried the manifiest thing, didn't work.
So, I created two MFC Dialog test projects from scratch. In advanced features, there is a checkbox: "Common Control Manifiest". So, one with that checked and one with that unchecked.
Put some code to create a scrollbar on InitDialog and voila, in one it was XP style and the other not.
So, I compared the projects. Trust me, the file stdafx.h was the last one to check, but there it was. So:
The line is "wizard generated". I created another blank project (not unicode), and the line is exactly the same as the unicode version.
So, you can use XP style!!!
Note: It applies to all controls (list, textbox, etc), not only scrollbars.
ErnestoNet
25-Jan-12 10:08am
View
You're welcome
ErnestoNet
24-Jan-12 14:06pm
View
There is a good article, here on Codeproject, about using that API:
http://www.codeproject.com/Articles/15319/A-Cleanup-API-for-Windows
ErnestoNet
23-Jan-12 18:53pm
View
You´re welcome.
It took me a long time to figure out that the images needed were 32 bits.
You can edit images in other editors and, when done, copy and paste in PixelFormer.
If OK, mark the solution as accepted.
ErnestoNet
22-Jan-12 15:06pm
View
The utility I use is PixelFormat:
http://www.qualibyte.com/pixelformer/
I have an article, here on CodeProject, that uses the ribbon and has some images.
http://www.codeproject.com/Articles/278316/BasicAdmin2-Personal-finance-software
About images, I usually use:
http://commons.wikimedia.org/wiki/Crystal_Clear
ErnestoNet
21-Jan-12 16:28pm
View
Mask is enabled adding code in CMainFrm. Something like:
m_wndRibbonBar.GetCategory(0)->GetLargeImages().SetTransparentColor(RGB(0,0,0));
ErnestoNet
21-Jan-12 16:27pm
View
OK.
1. To enable the button you must add code in the CMainFrame. In the message map add: ON_COMMAND(ID_BUTTON, &CMainFrame::ProcButton). And add ProcButton procedure as well.
ErnestoNet
20-Jan-12 9:12am
View
Be sure that: - Objects that you return are still alive - If you are using singletons, that you use the right object (and not a new copy). - That there aren´t other methods corrupting (writing) the class where the CString lies. - If using static variables, have you declared them correctly? My guess is that your problem is there. If you want to use a "global" instance of a class declare it as "extern" in a header file and normal in a cpp file, like:
extern Test gTest; /*In a global .h*/
Test gTest; /*In a cpp that is used before invoking the variable.*/
I don't recommend global variables, but....
ErnestoNet
12-Jan-12 9:55am
View
If you read the linking error, the problem is
<PRE>
cPlainKey::Print(void)
</PRE>
You should post the definition of class cPlainKey to find the error.
Show More