How to highlight owner-drawn menu items in XP, as ItemState = ODS_SELECTED is not available.
How to highlight owner-drawn menu items in XP, as ItemState = ODS_SELECTED is not available.
Rate How to highlight owner-drawn menu items in XP, as ItemState = ODS_SELECTED is not available.
(1(1 Vote))
However, when the mouse moves over a menu item, the state changes to &H101 (257). Therefore you can check for item selection and highlight the entry accordingly or draw normally using:
if strOSName = "XP" then
if DrwaInfo.ItemState = 257 then
blnSelected = True
Else
blnSelected = False
End if
Else
blnSelected = True
End if
...
If DrawInfo.ItemState = ODS_SELECTED _
OR blnSelected then
HighlightTheMenuItem
Else
DrawMenuItemNormally
end if
Cheers, Eric T
How to highlight owner-drawn menu items in XP, as ItemState = ODS_SELECTED is not available. Comments
No comments yet — be the first to post one!
Post a Comment