raise event
-
ok my situation is: i have a panel with 3 picture_box, but in general with 3 control
-------------------------------------- panel 1 img 1 img 2 img 3 -------------------------- ------------------------------------- over this panel i design a new semi-transparent form...what i want is that clicking on form1 in correspondance with the "img1" i can raise img1 click event.... i'm actually able to get the right control where i'm on, but i would like to be able to raise events. I know it's possible by extending the "picture box" class or by using a "button" with performClick method but i'd like to know if there is something for the general control class? thank in advance
-
ok my situation is: i have a panel with 3 picture_box, but in general with 3 control
-------------------------------------- panel 1 img 1 img 2 img 3 -------------------------- ------------------------------------- over this panel i design a new semi-transparent form...what i want is that clicking on form1 in correspondance with the "img1" i can raise img1 click event.... i'm actually able to get the right control where i'm on, but i would like to be able to raise events. I know it's possible by extending the "picture box" class or by using a "button" with performClick method but i'd like to know if there is something for the general control class? thank in advance
If your control is derived from
CWnd
, You should be able to define handlers forOnLButtonDown
,OnLButtonUp
, ..Watched code never compiles.