DialogBar problems
Deepak Saxena -- Deepak_Saxena@ccm.ch.intel.com Wednesday, June 26, 1996 MSVC 4.1, Nt3.51 Service Pack 4 I have a CDialogBar object in my framewnd, and I have two problems I can't figure out how to solve. 1) How do you disable the ctrl. bar from docking? I use EnableDocking(CBRS_ALIGN_BOTTOM) to dock it to the bottom of the window at creation time, but then I want it to stay there. 2) I want to stretch the dialog object within the control bar whenever the frame window is resized. I've tried calling MoveWindow() on the bar object, but that causes the dialog object to just disappear, leaving just a greay bar at the bottom of the screen. After looking at the code for CControlBar::OnResizeParent(), I set the style of of my control bar to CBRS_SIZE_DYNAMIC | CBRS_ORIENT_HORZ to see if this would accomplish what I wanted, but that doesn't do it either. What needs to be done? Tnx, Deepak Deepak_Saxena@ccm.ch.intel.com | http://cernan.ecn.purdue.edu/~deepak | Work: (602)554-1304, Home: (602)812-8933 | My statements do not represent Intel |
Rkumar_at_CalSoft-ElNet@mail.cswl.com Monday, July 01, 1996 Try putting this line of code into your childframe's OnCreate function. EnableDocking(CBRS_ALIGN_BOTTOM); EnableDocking in the frame window Specifies which sides of the frame window can serve as docking sites for control bars. ______________________________ Reply Separator _________________________________ Subject: DialogBar problems Author: mfc-l@netcom.com at internet Date: 6/26/96 11:41 AM MSVC 4.1, Nt3.51 Service Pack 4 I have a CDialogBar object in my framewnd, and I have two problems I can't figure out how to solve. 1) How do you disable the ctrl. bar from docking? I use EnableDocking(CBRS_ALIGN_BOTTOM) to dock it to the bottom of the window at creation time, but then I want it to stay there. 2) I want to stretch the dialog object within the control bar whenever the frame window is resized. I've tried calling MoveWindow() on the bar object, but that causes the dialog object to just disappear, leaving just a greay bar at the bottom of the screen. After looking at the code for CControlBar::OnResizeParent(), I set the style of of my control bar to CBRS_SIZE_DYNAMIC | CBRS_ORIENT_HORZ to see if this would accomplish what I wanted, but that doesn't do it either. What needs to be done? Tnx, Deepak Deepak_Saxena@ccm.ch.intel.com | http://cernan.ecn.purdue.edu/~deepak | Work: (602)554-1304, Home: (602)812-8933 | My statements do not represent Intel |
Andrew Dalgleish -- andrewd@axonet.com.au Monday, July 01, 1996 Check out how WordPad places it's ruler bar. Andrew Dalgleish ---------- From: owner-mfc-l[SMTP:owner-mfc-l@netcom.com] Sent: Wednesday, 26 June 1996 11:41 To: mfc-l Subject: DialogBar problems MSVC 4.1, Nt3.51 Service Pack 4 I have a CDialogBar object in my framewnd, and I have two problems I can't figure out how to solve. 1) How do you disable the ctrl. bar from docking? I use EnableDocking(CBRS_ALIGN_BOTTOM) to dock it to the bottom of the window at creation time, but then I want it to stay there. 2) I want to stretch the dialog object within the control bar whenever the frame window is resized. I've tried calling MoveWindow() on the bar object, but that causes the dialog object to just disappear, leaving just a greay bar at the bottom of the screen. After looking at the code for CControlBar::OnResizeParent(), I set the style of of my control bar to CBRS_SIZE_DYNAMIC | CBRS_ORIENT_HORZ to see if this would accomplish what I wanted, but that doesn't do it either. What needs to be done? Tnx, Deepak Deepak_Saxena@ccm.ch.intel.com | http://cernan.ecn.purdue.edu/~deepak | Work: (602)554-1304, Home: (602)812-8933 | My statements do not represent Intel |
| Вернуться в корень Архива |