Positioning Control Bars
John Lundy -- jlundy@iadfw.net Friday, June 28, 1996 Platform: VC++ 4.1 and NT 4.0 Beta 2 I an creating an MFC program which uses several control bars, CToolBar and CDialogBar classes; primarily. I need these control bars positioned along the top and bottom of the SDI frame window. I have tried DockControlBar, MoveWindow and SetWindowPos with only marginal success at positioning these control bars where I want them initially. If multiple control bars are to be positioned at the top of the frame window I can get them to be positioned anywhere horizontally that I specify. However, I can not get multiple control bars to share the same vertical position. Once created I can move the control bars side-by-side but cannot create them that way. Any suggestions? John Lundy ==================================================== John Lundy, Windows (16/32 bit) Software Developer At Home Entertainment Specializing in GUI, Multimedia and Game Development ==================================================== -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.2 mQCNAzEjXTAAAAEEAMEhmrYJUYivDtyoFSjgDGpYVkOvFd7ycGZ7VE8lNWJiSqhd VMhcL3Cs/8EkToYC5FDzKk043S6tnYDl2M8Fed7TuEPlHFG/VwB05H6jxw0z5UPE Cex93oZNgjtmqCgR1ZdSe7m4q/A5xX1jjjpQjA3V8nZlPC25slPM/tF5FKiRAAUR tCBKb2huIEMuIEx1bmR5IDxqbHVuZHlAaWFkZncubmV0Pg== =GbKQ -----END PGP PUBLIC KEY BLOCK-----
Doug Persons -- persons@esca.com Wednesday, July 03, 1996 Check out the DOCKTOOL sample app, mainfrm.cpp. They have a method called DockControlBarLeftOf, which can be used in place of DockControlBar to put additional control bars on the same row. Doug John Lundy wrote: > > Platform: VC++ 4.1 and NT 4.0 Beta 2 > > I an creating an MFC program which uses several control bars, CToolBar and > CDialogBar classes; primarily. I need these control bars positioned along > the top and bottom of the SDI frame window. I have tried DockControlBar, > MoveWindow and SetWindowPos with only marginal success at positioning these > control bars where I want them initially. If multiple control bars are to be > positioned at the top of the frame window I can get them to be positioned > anywhere horizontally that I specify. However, I can not get multiple > control bars to share the same vertical position. Once created I can move > the control bars side-by-side but cannot create them that way. > > Any suggestions? > > John Lundy > ==================================================== > John Lundy, Windows (16/32 bit) Software Developer > At Home Entertainment > Specializing in GUI, Multimedia and Game Development > ==================================================== >
| Вернуться в корень Архива |