Is it possible, doing a hover effect over an OwnerDrawn button ?
Is it possible, doing a hover effect over an OwnerDrawn button ?
/* Have a nice day */
Yes.
theres only 2 case for ownerdrawn buttons ODS_SELECTED AND ODS_FOCUS and they can't detect if the mouse is just over the button so is it reccomended that i use WM_PARENTNOTIFY or WM_MOUSEOVER ?
/* Have a nice day */
The ODS_HOTLIGHT flag is used to notify about mouse hovering.
However, I believe your owner drawn button will only recieve these notifications when you have called the TrackMouseEvent function.
r1ck0r, i tried to test what ODS_HOTLIGHT is about but why did my compiler tell me
Code:G:\C++\System\Main.cpp(46) : error C2065: 'ODS_HOTLIGHT' : undeclared identifier
/* Have a nice day */
You need to #define WINVER 0x0500 (see winuser.h) for your project - for simplicity just #define it before you #include windows.h.Originally Posted by rEtard
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
can someone tell me how to update my compiler? im using Visual C++ 6.0
/* Have a nice day */
You visit microsoft's website and download and install whatever the latest service pack for it is (6, probably) and get the psdk from them, too.
You'll still have to #define WINVER as I have described, though.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.