Do XP Owner-draw theme controls draw "hot"?

Do XP Owner-draw theme controls draw "hot"?

Post by am9yZ29 » Wed, 25 Feb 2004 19:31:06


I asked
<a href=" http://www.yqcomputer.com/ ">in this message</a> whether the ODS_HOTLIGHT message was sent to owner-draw theme controls so that they could be drawn "hot", but do I take it that this is not supported in XP? Or maybe a particular style should be applied
Sorry I can't check whether the link works because there is no preview function.
 
 
 

Do XP Owner-draw theme controls draw "hot"?

Post by John Carso » Thu, 26 Feb 2004 13:16:05


href=" http://www.yqcomputer.com/
win32.programmer.ui&mid=e9716ab5-5ad0-4e89-9f0a-ca458bc76ae3">in

The link loads a page containing a blank post. I suggest you just ask your
question, which you seem to have done. Alternatively, link to Google Groups
for old posts like so:

http://www.yqcomputer.com/ %40microsoft.com&rnum=1&prev=/groups%3Fq%3Djorgon%2Bgroup:microsoft.public.win32.programmer.ui%26hl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dmicrosoft.public.win32.programmer.ui%26selm%3D0817AADE-E676-4B63-A760-5327606F9E8B%2540microsoft.com%26rnum%3D1


I encountered the same problem myself under XP --- WM_DRAWITEM is not sent
to indicate that a control should be drawn "hot". I believe that this is
simply a bug. If you want to draw your control "hot", then you will have to
write your own code to check when the cursor is over your control.


--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)

 
 
 

Do XP Owner-draw theme controls draw "hot"?

Post by am9yZ29 » Fri, 27 Feb 2004 20:51:09

Thanks for your answer, John.

Presumably Microsoft are aware of this omission?
 
 
 

Do XP Owner-draw theme controls draw "hot"?

Post by John Carso » Fri, 27 Feb 2004 21:38:10


I believe so, but they don't seem particularly interested in fixing it,
probably because the new Microsoft thing is CustomDraw rather than OwnerDraw
controls. CustomDraw controls are actually a better idea (they don't force
you to draw the whole thing --- you can select what drawing you do and what
drawing the system does), but are complicated to use, not well documented,
and buggy. But CustomDraw bugs are more likely to be fixed than OwnerDraw
bugs.


--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)