I don't want this inside rectangle in button when it is attached. Does exist some simple way to remove it?
Printable View
I don't want this inside rectangle in button when it is attached. Does exist some simple way to remove it?
I'm afraid it is not clear what you mean. Do you mean the dotted line, the focus rectangle, which appears when you <TAB> to the control? The only way round this is to derive your own CButton class and control painting yourself, or to simply call SetFocus() on another control when you get the WM_SETFOCUS message - as long as you don't mind the user never being able to <TAB> to the control (they can still click it with the mouse, though, I think).