View previous topic :: View next topic |
Author |
Message |
acw
Joined: 04 Nov 2005 Posts: 165 Location: Darkest Devon
|
Posted: Thu Jul 12, 2007 6:37 pm Post subject: Capturing the mouse in a %gr window |
|
|
Is there any "official" way of capturing and releasing the mouse within the %gr callback (I'm not set_graphics_selection@), or getting the %gr window handle so that the normal SetCapture API func can be used ? I have got it working by using FindWindowEx to get a handle to the 'SalfordGraphics' window (class name) and it seems to work as expected but maybe there's a better way ?
Thanks,
Alan |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7928 Location: Salford, UK
|
Posted: Fri Jul 13, 2007 7:28 am Post subject: |
|
|
%lc gives the handle of the previous control. |
|
Back to top |
|
|
acw
Joined: 04 Nov 2005 Posts: 165 Location: Darkest Devon
|
Posted: Fri Jul 13, 2007 3:28 pm Post subject: |
|
|
Doh! Of course. Thanks Paul. |
|
Back to top |
|
|
|