#### Archived

This topic is now archived and is closed to further replies.

# owner drawn buttons & ODS_HOTLIGHT

## Recommended Posts

jharkey    110
hello, this is probably a stupid question, but whenever i try to check the ODS_HOTLIGHT bit in the draw item struct, it says ODS_HOTLIGHT is an undeclared identifier. in the msdn docs, it says that it is defined in windows.h, which i obviously included, or nothing would work. could someone please help me, do i have to update the header files or something. i have VC++ 6 professional edition, and have Windows ME.

##### Share on other sites
richardve    122
Put this line before including any headers:

  #define _WIN32_WINNT 0x0500

##### Share on other sites
richardve    122
NOTE: If you define _WIN32_WINNT as above your app won''t run on win95 (AFAIK)

If the compiler keeps saying that ODS_HOTLIGHT is undeclared you should d''load the newest win32 headers in the Platform SDK (headers+libs == 23MB).

btw. ODS_HOTLIGHT is defined in winuser.h wich is included by windows.h

##### Share on other sites
jharkey    110
thanks richardve,

i downloaded the new headers and libs, and finally got the compiler to recognize the HOTLIGHT. but it still wont work. i check the system to see if hot tracking is enabled, and if it isnt, i turn it on. but it still doesnt work. please help.

##### Share on other sites
richardve    122
I''ve had the same problem 2 weeks ago.
I don''t know why ODS_HOTLIGHT doesn''t work but I''m now using _TrackMouseEvent()

Hope that helps

##### Share on other sites
jharkey    110
thanks, that works ok, but i still would like to know why the hotlight doesnt work. oh well, another mystery of win32