Click here to Skip to main content
11,477,044 members (75,777 online)

C / C++ / MFC

 
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 
QuestionInitInstance() Problem Pin
Anu_Bala25-Feb-13 20:19
memberAnu_Bala25-Feb-13 20:19 
AnswerRe: InitInstance() Problem Pin
Richard MacCutchan25-Feb-13 22:52
mvpRichard MacCutchan25-Feb-13 22:52 
AnswerRe: InitInstance() Problem Pin
Max_Power_Up26-Feb-13 6:44
memberMax_Power_Up26-Feb-13 6:44 
AnswerRe: InitInstance() Problem Pin
«_Superman_»26-Feb-13 16:20
member«_Superman_»26-Feb-13 16:20 
QuestionRe: InitInstance() Problem Pin
CPallini26-Feb-13 22:08
mvpCPallini26-Feb-13 22:08 
AnswerRe: InitInstance() Problem Pin
Albert Holguin27-Feb-13 5:45
memberAlbert Holguin27-Feb-13 5:45 
QuestionHandling WinHttp Redirects Pin
endemoniada25-Feb-13 16:57
memberendemoniada25-Feb-13 16:57 
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 
QuestionMemory leak Pin
a_matseevsky25-Feb-13 10:19
membera_matseevsky25-Feb-13 10:19 
AnswerRe: Memory leak Pin
Richard Andrew x6425-Feb-13 11:11
memberRichard Andrew x6425-Feb-13 11:11 
GeneralRe: Memory leak Pin
a_matseevsky25-Feb-13 17:07
membera_matseevsky25-Feb-13 17:07 
GeneralRe: Memory leak Pin
Stephen Hewitt25-Feb-13 17:43
memberStephen Hewitt25-Feb-13 17:43 
GeneralRe: Memory leak Pin
Richard Andrew x6426-Feb-13 10:11
memberRichard Andrew x6426-Feb-13 10:11 
AnswerRe: Memory leak Pin
DavidCrow25-Feb-13 14:24
memberDavidCrow25-Feb-13 14:24 
AnswerRe: Memory leak Pin
Stefan_Lang26-Feb-13 5:04
memberStefan_Lang26-Feb-13 5:04 
GeneralRe: Memory leak Pin
a_matseevsky26-Feb-13 11:59
membera_matseevsky26-Feb-13 11:59 
GeneralRe: Memory leak Pin
Stefan_Lang26-Feb-13 23:44
memberStefan_Lang26-Feb-13 23:44 
GeneralRe: Memory leak Pin
a_matseevsky27-Feb-13 3:09
membera_matseevsky27-Feb-13 3:09 
GeneralRe: Memory leak [modified] Pin
Stefan_Lang27-Feb-13 3:52
memberStefan_Lang27-Feb-13 3:52 
GeneralRe: Memory leak Pin
a_matseevsky27-Feb-13 12:44
membera_matseevsky27-Feb-13 12:44 
Question[Solved] Memory leak in producer-consumer program [modified] Pin
noislude25-Feb-13 8:30
membernoislude25-Feb-13 8:30 
AnswerRe: Memory leak in producer-consumer program Pin
Richard Andrew x6425-Feb-13 11:08
memberRichard Andrew x6425-Feb-13 11:08 
GeneralRe: Memory leak in producer-consumer program Pin
noislude25-Feb-13 11:23
membernoislude25-Feb-13 11:23 
GeneralRe: Memory leak in producer-consumer program Pin
Richard Andrew x6425-Feb-13 11:33
memberRichard Andrew x6425-Feb-13 11:33 
GeneralRe: Memory leak in producer-consumer program Pin
noislude25-Feb-13 11:42
membernoislude25-Feb-13 11:42 
QuestionRe: Memory leak in producer-consumer program Pin
DavidCrow25-Feb-13 14:28
memberDavidCrow25-Feb-13 14:28 
AnswerRe: Memory leak in producer-consumer program Pin
noislude25-Feb-13 14:33
membernoislude25-Feb-13 14:33 
GeneralRe: Memory leak in producer-consumer program Pin
Stefan_Lang26-Feb-13 4:29
memberStefan_Lang26-Feb-13 4:29 
GeneralRe: Memory leak in producer-consumer program Pin
noislude26-Feb-13 9:07
membernoislude26-Feb-13 9:07 
GeneralRe: Memory leak in producer-consumer program Pin
Stefan_Lang26-Feb-13 23:21
memberStefan_Lang26-Feb-13 23:21 
GeneralRe: Memory leak in producer-consumer program Pin
noislude26-Feb-13 23:27
membernoislude26-Feb-13 23:27 
GeneralRe: Memory leak in producer-consumer program Pin
Stefan_Lang27-Feb-13 0:01
memberStefan_Lang27-Feb-13 0:01 
SuggestionRe: Memory leak in producer-consumer program Pin
noislude27-Feb-13 10:47
membernoislude27-Feb-13 10:47 
AnswerRe: Memory leak in producer-consumer program Pin
Vaclav_Sal25-Feb-13 18:45
memberVaclav_Sal25-Feb-13 18:45 
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 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web01 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid