This example uses the HIDEFOCUS attribute to prevent a focus rectangle from appearing on a button.
Set the focus to each of the following buttons by clicking on the button with the mouse pointer, or by pressing the TAB key to shift focus. When the "Button With Rectangle" has focus, a focus rectangle is displayed over the button. When the "Button Without Rectangle" has focus, the focus rectangle does not appear.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.