Click here to Skip to main content
15,671,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++, MFC, MDI application ...

How to change the MDI main widows bar color?

What I have tried:

I tryed with mainframe ... or  aCMFCVisualManagerWindows7 derived class

<pre>BOOL CCiVisualStyle::DrawTextOnGlass(CDC* pDC, CString strText, CRect rect, DWORD dwFlags, int nGlowSize, COLORREF clrText)
	// Zone de fichiers recents
	CBrush br(RGB(255, 255, 0));
	pDC->FillRect(rect, &br);

	return CMFCVisualManagerWindows7::DrawTextOnGlass(pDC, strText, rect, dwFlags, nGlowSize, RGB(0, 0, 0));

but its just a part of the bar is colored ...

Thank for help
Rick York 22-Nov-20 14:24pm    
I don't have a good answer for you but I have tried this stuff before with little success. If you figure it out please write an article to help the rest of us.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900