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]
-
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>