Checking Dockability of control bars.
BLR CSG -- T_SAMAL_C1@blrv1.verifone.com
Sunday, August 25, 1996
Hi,
Environment: VC 4.00, Win95
I want to be able to dynamically check and toggle the dockable property of
a control bar. It is possible to toggle the state using
EnableDocking(CBRS_ALIGN_ANY) ; and EnableDocking(0) ;
But i'm not able to check the present dockablity status.
I tried GetBarStyle()&CBRS_ALIGN_ANY but this gives true for both cases.
(different values 0x2000 and 0x8000, but both true - and i don't want to
depend on the absolute nos.)
I also tried using CControlBar::GetBarInfo with CControlBarInfo class. But the
m_bDockBar flag doesn't seem to change with EnableDocking call.
Any help would be greatly appreciated.
Thanks/Samal Chandran
Verifone BLR.
Dicky Singh -- Dicky@landmark.com
Monday, August 26, 1996
you maybe interested in checking CControlBar::IsFloating( ) and CFrameWnd::FloatControlBar( )
----------
From: Samal Chandran, CSG, BLR[SMTP:T_SAMAL_C1@blrv1.verifone.com]
Sent: Monday, August 26, 1996 3:23 a
To: mfc-l@netcom.com
Subject: Checking Dockability of control bars.
Hi,
Environment: VC 4.00, Win95
I want to be able to dynamically check and toggle the dockable property of
a control bar. It is possible to toggle the state using
EnableDocking(CBRS_ALIGN_ANY) ; and EnableDocking(0) ;
But i'm not able to check the present dockablity status.
I tried GetBarStyle()&CBRS_ALIGN_ANY but this gives true for both cases.
(different values 0x2000 and 0x8000, but both true - and i don't want to
depend on the absolute nos.)
I also tried using CControlBar::GetBarInfo with CControlBarInfo class. But the
m_bDockBar flag doesn't seem to change with EnableDocking call.
Any help would be greatly appreciated.
Thanks/Samal Chandran
Verifone BLR.
| Вернуться в корень Архива
|