Click here to Skip to main content
13,350,708 members (68,281 online)

C / C++ / MFC

 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197926-Feb-13 22:56
memberashwath197926-Feb-13 22:56 
AnswerRe: Reading Compressed AVI Video file Pin
Max_Power_Up27-Feb-13 0:50
memberMax_Power_Up27-Feb-13 0:50 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197927-Feb-13 3:07
memberashwath197927-Feb-13 3:07 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath197927-Feb-13 21:04
memberashwath197927-Feb-13 21:04 
AnswerRe: Reading Compressed AVI Video file Pin
Max_Power_Up28-Feb-13 0:02
memberMax_Power_Up28-Feb-13 0:02 
GeneralRe: Reading Compressed AVI Video file Pin
ashwath19791-Mar-13 2:28
memberashwath19791-Mar-13 2:28 
AnswerRe: Reading Compressed AVI Video file Pin
Max_Power_Up27-Mar-13 1:40
memberMax_Power_Up27-Mar-13 1:40 
SuggestionFix: Ribbon text displays inactive after migrating to VS2012 Pin
DataFlask25-Feb-13 14:48
memberDataFlask25-Feb-13 14:48 
This fix applies to VS2012 MFC projects that use the Windows7 Visual Manager style. It causes active button caption text to draw in color 0,0,0 and not the same color as inactive.

This restores VS2010/2008 Feature Pack behavior.

Hello, I thought to post this to CP in case others had this issue. In 2012 MFC was 'fixed' to draw text using TextNormal as specified in Style.xml resource (I suspect that TextNormal should have been 0,0,0 in 2010 but it went unoticed).

//h
class CFixMFCVisualManagerWindows7 : public CMFCVisualManagerWindows7
{
	COLORREF OnDrawRibbonPanel(CDC* pDC, CMFCRibbonPanel* pPanel, CRect rectPanel, CRect rectCaption);
	DECLARE_DYNCREATE(CFixMFCVisualManagerWindows7)
};

//cpp
IMPLEMENT_DYNCREATE(CFixMFCVisualManagerWindows7, CMFCVisualManagerWindows7)
COLORREF CFixMFCVisualManagerWindows7::OnDrawRibbonPanel(CDC* pDC, CMFCRibbonPanel* pPanel, CRect rectPanel, CRect rectCaption)
{
	CMFCVisualManagerWindows7::OnDrawRibbonPanel(pDC, pPanel, rectPanel, rectCaption);
	return GetGlobalData()->clrBarText; //2010 Compatible Behavior
}

//Replace CFixMFCVisualManagerWindows7 below
//CAppMainFrame::OnCreate(LPCREATESTRUCT lpcs)
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CFixMFCVisualManagerWindows7));

rsf - Interscape

QuestionRe: Fix: Ribbon text displays inactive after migrating to VS2012 Pin
Richard MacCutchan25-Feb-13 22:49
mvpRichard MacCutchan25-Feb-13 22:49 
QuestionWhat is the MFC future Pin
Arris7425-Feb-13 8:06
memberArris7425-Feb-13 8:06 
AnswerRe: What is the MFC future Pin
Vaclav_Sal25-Feb-13 10:46
memberVaclav_Sal25-Feb-13 10:46 
GeneralRe: What is the MFC future Pin
Richard Andrew x6425-Feb-13 11:07
memberRichard Andrew x6425-Feb-13 11:07 
AnswerRe: What is the MFC future Pin
yu-jian25-Feb-13 22:30
groupyu-jian25-Feb-13 22:30 
GeneralRe: What is the MFC future Pin
Pete O'Hanlon26-Feb-13 4:30
protectorPete O'Hanlon26-Feb-13 4:30 
AnswerRe: What is the MFC future Pin
Stefan_Lang26-Feb-13 4:16
memberStefan_Lang26-Feb-13 4:16 
GeneralRe: What is the MFC future Pin
yu-jian26-Feb-13 18:44
groupyu-jian26-Feb-13 18:44 
AnswerRe: What is the MFC future Pin
_AnsHUMAN_ 27-Feb-13 2:42
group_AnsHUMAN_ 27-Feb-13 2:42 
AnswerRe: What is the MFC future Pin
Joe Woodbury4-Mar-13 13:00
memberJoe Woodbury4-Mar-13 13:00 
QuestionWere is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 6:19
memberVaclav_Sal25-Feb-13 6:19 
AnswerRe: Were is a source of "sal.h" header file? Pin
Richard MacCutchan25-Feb-13 6:44
mvpRichard MacCutchan25-Feb-13 6:44 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 6:52
memberVaclav_Sal25-Feb-13 6:52 
GeneralRe: Were is a source of "sal.h" header file? Pin
SoMad25-Feb-13 7:39
memberSoMad25-Feb-13 7:39 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 10:21
memberVaclav_Sal25-Feb-13 10:21 
QuestionDisplaying Image from stream Pin
toms from newdelhi24-Feb-13 18:55
membertoms from newdelhi24-Feb-13 18:55 
AnswerRe: Displaying Image from stream Pin
SoMad24-Feb-13 19:58
memberSoMad24-Feb-13 19:58 

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.


Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 19 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid