Simple and short question:
I want to create a borderless resizable form. So I use the WM_NCHITTEST message and set the result to HTTOPLEFT
, HTLEFT
, ...
. This works fine if I do not hover any control. But if I for example create a panel and dock it to the top, the WndProc is only called when I do not hover the panel, because the Control.WndProc of the panel is called, so HTTOPLEFT
, HTTOPRIGHT
and HTTOP
are not possible anymore.
Is it possible to raise the messages to the form? I also want to support the default controls, so what I don't want to do is derive the controls and override their WndProc.