Click here to Skip to main content
15,898,988 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Name and path of exe (or dll) Pin
Einar Kvandahl30-Nov-04 3:56
Einar Kvandahl30-Nov-04 3:56 
GeneralRe: Name and path of exe (or dll) Pin
Iain Clarke, Warrior Programmer30-Nov-04 4:11
Iain Clarke, Warrior Programmer30-Nov-04 4:11 
GeneralRe: Name and path of exe (or dll) Pin
Einar Kvandahl30-Nov-04 4:37
Einar Kvandahl30-Nov-04 4:37 
GeneralTree Item Color Pin
Neelesh K J Jain30-Nov-04 2:03
Neelesh K J Jain30-Nov-04 2:03 
GeneralRe: Tree Item Color Pin
Iain Clarke, Warrior Programmer30-Nov-04 2:09
Iain Clarke, Warrior Programmer30-Nov-04 2:09 
GeneralRe: Tree Item Color Pin
Neelesh K J Jain1-Dec-04 0:18
Neelesh K J Jain1-Dec-04 0:18 
QuestionFIFO buffer settings for serial ports ? Pin
olczyk_michael30-Nov-04 1:38
olczyk_michael30-Nov-04 1:38 
AnswerRe: FIFO buffer settings for serial ports ? Pin
Iain Clarke, Warrior Programmer30-Nov-04 2:04
Iain Clarke, Warrior Programmer30-Nov-04 2:04 
GeneralProblems to add title in a split Frame Pin
Member 152995930-Nov-04 1:34
Member 152995930-Nov-04 1:34 
GeneralVC-7 ATL classes in VC-6 Pin
Imtiaz Murtaza30-Nov-04 1:33
Imtiaz Murtaza30-Nov-04 1:33 
GeneralRe: VC-7 ATL classes in VC-6 Pin
BlackDice30-Nov-04 6:32
BlackDice30-Nov-04 6:32 
GeneralCollection in vc++ Pin
balajeedurai30-Nov-04 1:09
balajeedurai30-Nov-04 1:09 
GeneralRe: Collection in vc++ Pin
ThatsAlok30-Nov-04 1:19
ThatsAlok30-Nov-04 1:19 
GeneralMigrating from Visual C++ 4.0 to Visual C++ in .Net Pin
footballmaniac1130-Nov-04 0:59
footballmaniac1130-Nov-04 0:59 
Generallooking for particular xp color Pin
dude7730-Nov-04 0:40
dude7730-Nov-04 0:40 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 0:59
Iain Clarke, Warrior Programmer30-Nov-04 0:59 
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 2:15
dude7730-Nov-04 2:15 
GeneralRe: looking for particular xp color Pin
Marcus Spitzmiller30-Nov-04 3:23
Marcus Spitzmiller30-Nov-04 3:23 
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 3:44
dude7730-Nov-04 3:44 
GeneralRe: looking for particular xp color Pin
Marcus Spitzmiller30-Nov-04 4:00
Marcus Spitzmiller30-Nov-04 4:00 
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 4:33
dude7730-Nov-04 4:33 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 3:50
Iain Clarke, Warrior Programmer30-Nov-04 3:50 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 4:08
Iain Clarke, Warrior Programmer30-Nov-04 4:08 
I've been experimenting, and made a small SDI application.
I added the following code to the OnDraw method of the view:

void CColourTestView::OnDraw(CDC* pDC)
{
	CColourTestDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here

	CRect rc;
	GetClientRect (&rc);

	pDC->FillSolidRect (&rc, RGB(255,0,0));  // Make a red border.
	rc.DeflateRect (20,20);
	pDC->FillSolidRect (&rc, GetSysColor (COLOR_3DSHADOW)); // Fill the bulk with BK colour.

}


On 2000, changing the colours gets reflected in the view.
Most colours are grey, but it does work.

In XP, if you choose Windows And Buttons to be Windows Classic
Style
, then choose a colour scheme, it works.

But select Windows XP Style, and it stops working (as
you've seen yourself).

This is because XP used the Theme API to draw UI elements.
So a "DrawThemedButton" API function can add shiny 3D effects
and so on.

Unfortunately, I've not used the Theme API, so my help runs
out at this point. But at least you know where to look! And
there are several articles on Theming here on CP.

Iain.
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 4:23
dude7730-Nov-04 4:23 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 5:19
Iain Clarke, Warrior Programmer30-Nov-04 5:19 

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.