get rid of DialogBar border
Lawrence_Chan_at_HONGKONG@pcmailap.japan.ml.com Wednesday, July 31, 1996 Enviroment: VC++ 4.0 and Windows NT 3.51 When you float a control bar, a new bar is drawn with caption and border. I would like the floating bar to have a caption but without the thick frame. Could this be done from within a derived CDialogBar object?
Randy Taylor -- drt@ebt.com Sunday, August 04, 1996 > Enviroment: VC++ 4.0 and Windows NT 3.51 > > When you float a control bar, a new bar is drawn with caption and > border. I would like the floating bar to have a caption but without > the thick frame. Could this be done from within a derived CDialogBar > object? Yes. Be aware that you must call Detach() from your CDialogBar derivative's destructor, even if you create your CDialogBar derivative on the stack. The base class functions do not remove the HWND from afxMapHWND (map of HWND's to associated CWnd*). Randy Taylor Electronic Book Technologies, Inc. randy_taylor@ebt.com
Lawrence_Chan@pcmailgw.ml.com Wednesday, August 07, 1996 Hi Randy: I am not sure how do you use Detach() to get rid of a windows border. What I want is a bar created without a frame, I have no intention to detach the window from the object. ______________________________ Reply Separator _________________________________ Subject: Re: get rid of DialogBar border Author: mfc-l@netcom.com at UNIXGTWY Date: 8/6/96 3:45 PM > Enviroment: VC++ 4.0 and Windows NT 3.51 > > When you float a control bar, a new bar is drawn with caption and > border. I would like the floating bar to have a caption but without > the thick frame. Could this be done from within a derived CDialogBar > object? Yes. Be aware that you must call Detach() from your CDialogBar derivative's destructor, even if you create your CDialogBar derivative on the stack. The base class functions do not remove the HWND from afxMapHWND (map of HWND's to associated CWnd*). Randy Taylor Electronic Book Technologies, Inc. randy_taylor@ebt.com
| Вернуться в корень Архива |