
Window Caption for a Dialog Box Control
Hi..
You can try
ModifyStyle(0,WS_CAPTION , SWP_DRAWFRAME)
For example if you have an edit box, then calling
(CEdit*)GetDlgItem(IDC_EDIT1 )->ModifyStyle(0,WS_CAPTION ,
SWP_DRAWFRAME) ;
will add a caption. However note that you should extend the size, to
include the caption.
Cheers
Check Abdoul
------------------
Quote:
> As far as I know, you will need to just put a static text box beside the
> control in question.(Except CButton).
> Keith
> > I need a caption on a Dialog Control (such as a list box etc)
> > WS_CAPTION for control window seems to be ignored.
> > A border is created but no caption.
> > Any ideas how to get this to work ?