Re: DrawCaption API function
Here's the values copied straight from the C++ header file :
/* flags for DrawCaption */
#define DC_ACTIVE 0x0001 ' DC_ACTIVE as long = &H0001
#define DC_SMALLCAP 0x0002 ' DC_SMALLCAP as as long = &H0002
#define DC_ICON 0x0004 ' etc....
#define DC_TEXT 0x0008
#define DC_INBUTTON 0x0010
#if(WINVER >= 0x0500)
#define DC_GRADIENT 0x0020
#endif /* WINVER >= 0x0500 */
WINUSERAPI
BOOL
WINAPI
DrawCaption(HWND, HDC, CONST RECT *, UINT);
It appears that you can only rely on DC_GRADIENT if you are running version 5 or later of windows (Win98/2000 ?)
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb