Home > Software engineering >  Excuse me, how to make a control could not stop it behind the controls of the mouse events?
Excuse me, how to make a control could not stop it behind the controls of the mouse events?

Time:09-26

I above an aic control adds a transparent label control, but I want to make the label can't stop all mouse events of aic,
I want to use the call to move each event, but some aic control's event was no label control,
I try to put the label enabled set to false, but I don't want to let the label is grey,
I want to know the how to make the label could not stop for aic all mouse events ,

CodePudding user response:

The most simple you don't use LABEL control, direct use GDI API in your draw this aic control above the text, use the LABEL, you can put the mouse stopped completely, and then simulated reduction to aic controls, similar to the wizard button the principle of playback,

CodePudding user response:

Under the label for mouse events, and then sendmessage to the controls

CodePudding user response:

reference 1st floor xiaoyao961 response:
the most simple you don't use LABEL control, direct use GDI API in your draw this aic control above the text, use the LABEL, you can put the mouse stopped completely, and then simulated reduction to aic controls, the principle of similar wizard button playback,
I'm sorry, I don't know which GDI functions can realize the function, can give you an example?

CodePudding user response:

refer to the second floor aspower_ response:
label mouse events, and the control below sendmessage to
should not, some of the aic mouse events is no label,

CodePudding user response:

reference Flapoy reply: 3/f
Quote: refer to 1st floor xiaoyao961 response:

The most simple you don't use LABEL control, direct use GDI API in your draw this aic control above the text, use the LABEL, you can put the mouse stopped completely, and then simulated reduction to aic controls, similar to the wizard button the principle of playback,
I'm sorry, I don't know which GDI functions can realize the function, can give you an example?

Draw text, mainly DrawText () or TextOut () these, want to use it, of course, also have attached the first use of GetWindowDC () API,
  • Related