FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Transparent control

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
HateWork



Joined: 20 Oct 2007
Posts: 13

PostPosted: Mon Feb 25, 2008 10:11 am    Post subject: Transparent control Reply with quote

Hi,

Is it possible to create a transparent control? i mean, like a Rect but with mouse events that can be located on front of other controls (a picturebox for example) without painting on top of them.

I want to do this because i want to add mouse hover events to specific areas of an image.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Mar 04, 2008 3:30 pm    Post subject: Re: Transparent control Reply with quote

There's WS_EX_TRANSPARENT but it also causes it to skip mouse messages. How about just keeping a set of Rect`s and see if the mouse is in the bounds..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
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