CControlBar position
Mike Ward -- mikew@hilgraeve.com Monday, May 13, 1996 Environment: VC++4.1, Win95 There doesn't seem to be a way to query what quadrant a CControlBar derived control is docked (ie. left, right, top, bottom). Is there a way to query which quadrant the control bar is in?
Bill McGarry -- billm@isc-br.isc-br.com Thursday, May 16, 1996 At 03:57 PM 5/13/96 -500, you wrote: >Environment: VC++4.1, Win95 > >There doesn't seem to be a way to query what quadrant a CControlBar >derived control is docked (ie. left, right, top, bottom). Is there a >way to query which quadrant the control bar is in? > Just use "GetBarStyle()" which is a member of CControlBar. There are five defines that you use: CBRS_BORDER_LEFT CBRS_BORDER_RIGHT CBRS_BORDER_TOP CBRS_BORDER_BOTTOM CBRS_BORDER_ANY (which are the previous 4 OR'd) These will tell you where the control bar is currently docked. To determine where the control bar is allowed to be docked, use CBRS_ALIGN_LEFT, CBRS_ALIGN_RIGHT and so on. Look at the other defines in afxres.h -- you can use the GetBarStyle to find if the control bar is floating, vertical or horizontal, fixed or adjustable, 3D, tooltips enabled, flyby enabled and I can't remember what else. Hope this helps, Bill McGarry Olivetti North America billm@mail.isc-br.com
| Вернуться в корень Архива |