Envent Child to Parent and WndProc

  • Thread starter Thread starter willem
  • Start date Start date
W

willem

I have an UserControl with a label.
Is it possible to process events from label inside the WndProc of
UserControl ?

(if somebody click with mouse on the label I want that WndProc of
UserControl process WM_LBUTTONDOWN)

Thanks
 
I have an UserControl with a label.
Is it possible to process events from label inside the WndProc of
UserControl ?

(if somebody click with mouse on the label I want that WndProc of
UserControl process WM_LBUTTONDOWN)


Why do you want custom message handling in WndProc at all? Can't you
just add a handler for the label's MouseDown event?


Mattias
 
Mattias Sjögren said:
Why do you want custom message handling in WndProc at all? Can't you
just add a handler for the label's MouseDown event?


Mattias
No, I'm not.
Because I have an ovverride WndProc for enable the 'window moving',
transforming WM_LBUTTONDOWN message
in a HT_CAPTION message, when I press with mouse in a special zone (with
label inside).
When I press over label that doesn't work because my WndProc doesn't
recognize the message.

willem
 
Back
Top