Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTPControlButtons and LButtonUp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPControlButtons and LButtonUp

 Post Reply Post Reply
Author
Message
gibbo View Drop Down
Groupie
Groupie
Avatar

Joined: 04 January 2007
Location: United Kingdom
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibbo Quote  Post ReplyReply Direct Link To This Post Topic: XTPControlButtons and LButtonUp
    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
Back to Top
gibbo View Drop Down
Groupie
Groupie
Avatar

Joined: 04 January 2007
Location: United Kingdom
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibbo Quote  Post ReplyReply Direct Link To This Post Posted: 24 September 2007 at 10:39am
Any body Know how I can Solve this?
 
Thanks
 
 
Gibbo
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 24 September 2007 at 2:17pm
How about this?
 
!(GetAsyncKeyState(VK_LBUTTON) & 0x8000)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.