jmfernau
asked on
Getting rid of the focus rectangle in a CButton
I have a button in which I use a SetBitmap call to put a bitmap on the button. Everything works ok, but when the button has the focus there is a "focus" rectangle drawn on top of the Bitmap. Normally, I wouldn't care, but this button is small and the "focus" rectangle hides most of the bitmap. How do I get rid of this "focus" rectangle? I could probably use a CBitmapButton but is there a way to do it using CButton?????
thanks,
Jon
thanks,
Jon
I've looked as some code I've written which uses a CButton which is set to be owner-drawn and it doesn't have the problem about focus rectangles. Is your button owner-drawn? Also, how about disabling it as a tab-stop?
Disabling the tab-stop will only change the focus if tabbed to it. Won't the rectangle still show up once it has been clicked?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that will work as a quick fix....
thanks,
Jon
thanks,
Jon