Adding a standard border to a control. - Bob Powell writes a nice technique for adding a standard border to any Control (or UserControl in my case). The technique involves setting the CreateParams.Style or .ExStyle flags to determine how the control will be created.
Style constants can be found in
winuser.h under WindowStyles (WS_) and WindowStylesExtended (WS_EX_).