Keith,
If it doesn't take focus, then what is the point?
Also, have you looked at the WM_SETFOCUS message? It is sent to your
window when you get focus. You can just shift the focus to another control
at that point.
Although, it sounds like you might be better off just painting a button
on the screen, since it's not going to do anything.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<ke************@gmail.com> wrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
I'm trying to create a button that will take no focus (it's for a
dialog designer app).
I've tried sub-classing the button control and overriding the WndProc()
function to trap button messages. This method doesn't seem to be
working, and it's doing my head in. The only other suggestion I can
come across is to draw the control using GDI+ code, which I'd prefer
not be able to do.
Is there anyone out there who has any ideas.
Thanks,
Keith