INF: Placing Captions on Control Windows

ID Number: Q77750

2.00 2.x 3.00

WINDOWS

Summary:

The SetWindowText() function can be used to place text into the

caption bar specified for a control window. The control must have the

WS_CAPTION style for the caption to be visible.

This technique does not work with edit controls because the

SetWindowText() function specifies the contents of the edit control,

not its caption.