I want to keep track of the pen's position from anywhere. I want WndProc to be called even if it's on the button. But, If there is a button in the form, wndProc does not occur. What should I do?
Some details:
Certain pen mouse message comes in wndProc's message. (pen mouse message's Msg is 0x0711)
If I move the pen inside the form, the value continues to come up with wndProc. But, If there is a button in the form, wndProc does not occur on a button.
public const int PEN = 0x0711;
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (PEN == m.Msg)
{
// TODO: function
}
}