I'd like to be able to distinguish between a left and right click on a button. I see how to do it on part of the client area, a rectangle, etc, but not how to detect a click or left click on a button. Is there an easy way to do this? Or should I just use a rectangular area instead of a button? I can do either one but it seemed that using a button would be simpler.
Barry
look here :
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_rbuttondown.asp?frame=true
or try this ;)
#define WM_RBUTTONDOWN 0x0204
theapp::OnControl(int nID, int nNotifyCode, unsigned int hControl),int
{
select nid
{
case mybutton:
if nNotifycode = WM_RBUTTONDOWN
{
//do something
}
}
return false;
}
i've not test it, but it should show you the way ;)
I just realized I posted this in the wrong forum. It's an Ebasic question. I'll re-post it in there. But I'll also look at your code and see if it gives me any clues.
Thanks,
Barry