![]() |
XTPControlButtons and LButtonUp |
Post Reply ![]() |
Author | |
gibbo ![]() Groupie ![]() ![]() Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() Posted: 26 June 2007 at 9:07am |
Hi,
Was wondering if anybody could help.
I have a ribbonbar with several buttons in them and as I need the button to do something whilst it was depressed i used SetExecuteOnPressInterval(msInterval) on the Controlbutton to send the message for the command every so often. This worked like a dream
![]() The problem now, is that I have a need to now know when the button is release. I.E. when the LButtonUp message is fired.
I've tried checking for the for this:
GetAsyncKeyState(VK_LBUTTON) & 0x8000
when the command message has invoked, but it always returns true
![]() I've tried trying to overload the class to do it, but no joy
![]() Any ideas on how can achieve this?
Many thanks
|
|
Gibbo
|
|
![]() |
|
gibbo ![]() Groupie ![]() ![]() Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
Any body Know how I can Solve this?
Thanks
|
|
Gibbo
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
How about this?
!(GetAsyncKeyState(VK_LBUTTON) & 0x8000)
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |