I don't want my buttons to be able to be focussed...like the buttons in the title bar...any way?
Printable View
I don't want my buttons to be able to be focussed...like the buttons in the title bar...any way?
I haven't tried it, but I think the DrawFocusRect API should do the job.
Use your button's coordiates to get the focus rect's coordinates, fill a RECT struct with the data, and call the function, and this should remove the focus rectangle.Quote:
Originally posted by MSDN
Remarks
Because DrawFocusRect is an XOR function, calling it a second time with the same rectangle removes the rectangle from the screen.
Let me know if it works.