Re: how to differentiate a single click from a double click in CTreeviewCtrl
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 10:00:17 +0100
"JD" <jdt_young@xxxxxxxxx> wrote in message news:uDzJMEjAIHA.5124@xxxxxxxxxxxxxxxxxxxxxxx
I have no other choice because the request is from a spec defined by my PD colleague. On a single click, an item is selected and I need to do a lot of graphic stuffs that consuming lots of computer power. The PD allow users to double click another item which may not be the one user just select. Because of performance, I don't want to perform the graphic stuffs twice if user double clicks an item.
Then set a status flag in your "graphics stuff" to be, say, "valid" or "invalid".
Set it valid after a single click, and invalid at any time thereafter when another click somewhere would require it to be redone. Then on single clicking act according to the flag.
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm
.
- References:
- Prev by Date: Re: Importing MFC resources
- Next by Date: very important for your life...
- Previous by thread: Re: how to differentiate a single click from a double click in CTreeviewCtrl
- Next by thread: Re: how to differentiate a single click from a double click in CTreeviewCtrl
- Index(es):