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.
Tags: disabled, setsyscolor, winapi
Related entries:
- What is the error "Internal error 1: WSLDIAL"?
- Is it possible to create number arrays dynamically via NEW?
- How it is possible to receive information about Prompt text from dictionary?
- How to know in which control mouse cursor is (before ACCEPT)?
- How to make smooth scrolling of rows in LIST?
Last update: 2007-07-13 14:44
Author:
Revision: 1.0
You can comment on this entry