Adding a Toolbar in a dialog
J Ramesh -- rjampula@tdmail.india.ingr.com Monday, August 19, 1996 Environment: VC++ 4.2 under Windows 95 Hi, How can I insert a toolbar at some location (say in the middle) of a dialog box. More specifically I want to insert a toolbar consisting of some buttons like Bold, Italic, Underlined besides an edit control inside a dialog box. If the user selects the text from the edit box and chooses any of these buttons the text has to get updated accordingly. Please note that the location of the toolbar is *not* at the top of the dialog. Anybody who has some experience on this... please throw some light... Thanks ... Ramesh
Marty Fried -- mfried@linex.com Wednesday, August 21, 1996 Create a static picture window (rect or frame) in the dialog where you want the toolbar, and make that the parent of the toolbar. Then, after creating the toolbar, send it a TB_SETPARENT message, with the dialog's HWND (so the dialog will get the messages like WM_COMMAND; otherwise the static window will get them). Marty Fried Marin County, Calif ------------------------------- At 04:52 PM 8/19/96 EST, J Ramesh wrote: > >Environment: VC++ 4.2 under Windows 95 > >Hi, > > How can I insert a toolbar at some location (say in the middle) of a >dialog box. > > More specifically I want to insert a toolbar consisting of some buttons >like Bold, Italic, Underlined besides an edit control inside a dialog >box. If the user selects the text from the edit box and chooses any of >these buttons the text has to get updated accordingly. Please note that >the location of the toolbar is *not* at the top of the dialog. > > Anybody who has some experience on this... please throw some light... > >Thanks ... >Ramesh > > >
| Вернуться в корень Архива |