problems with DOUBLE CLICK in Windows API
i have tried to listen to the event WM_LBUTTONDBCLK and it is not working....
does anybody here knows why?
i tried with appz that dont use openGL and they work just fine..
i know that this probebly question in microsoft forum but maybe someone here knows the answer
Perhaps the event is being intercepted somewhere else. Can you post your listening code?
Cheers,
- llvllatrix
Cheers,
- llvllatrix
yea as Matrix said, it's probobly got intercepted before it could count as a doubleclick.
Basicly what i think is happening is that if you click once it will post a click message in the message que.
When the next click comes it checks if there has been a recent click in the message que, if so then change that into a doubleclick.
However most gl apps emty that que 60-100(or more) times a second, leaving little chance of actuarly regestering a doubleclick.
but this is just speculation.
So if you realy need the double click thingey and WM_LBUTTONDBCLK doesn't work, then you have to do it yourself, it shouldn'r be that hard to do.
Basicly what i think is happening is that if you click once it will post a click message in the message que.
When the next click comes it checks if there has been a recent click in the message que, if so then change that into a doubleclick.
However most gl apps emty that que 60-100(or more) times a second, leaving little chance of actuarly regestering a doubleclick.
but this is just speculation.
So if you realy need the double click thingey and WM_LBUTTONDBCLK doesn't work, then you have to do it yourself, it shouldn'r be that hard to do.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement