I am trying to create a virtual keypad control for my
client's touch screen application (using Windows XP). I
have created a form, which I call Keypad, and in
CreateParameters have added WS_EX_NOACTIVATE to the
CreateParameter's ExStyle. This is supposed to tell the
form to not take focus. I put a label on the form and
hook into the Click event.
I start my main application form, which has a text box
control on it. I open my Keypad form, then select some
text in the main application's text box. When I click on
the label, the Keypad grabs focus and the selection in my
applications text box loses focus. I've tried several
things, but can't get the Keypad form to avoid grabbing
focus.
Can someone tell me what I am missing here?