forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Capturing the mouse in a %gr window

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Thu Jul 12, 2007 6:37 pm    Post subject: Capturing the mouse in a %gr window Reply with quote

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
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Jul 13, 2007 7:28 am    Post subject: Reply with quote

%lc gives the handle of the previous control.
Back to top
View user's profile Send private message AIM Address
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Fri Jul 13, 2007 3:28 pm    Post subject: Reply with quote

Doh! Of course. Thanks Paul.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group