Windows API

ID #1037

How to create disabled window control that is not differ from normal control by sight?

Use API function:
BOOL WINAPI SetSysColors(
int cElements,               // number of elements
CONST INT *lpaElements,      // array of elements
CONST COLORREF *lpaRgbValues // array of RGB values
);
You should replace color COLOR_GRAYTEXT. And it is desirable to restore it after program termination.
Categories for this entry

Tags: disabled, setsyscolor, winapi

Related entries:

Last update: 2007-07-13 14:44
Author:
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You can comment on this entry