The information in this article applies to:
SUMMARYThis article illustrates how to make an OLE Container's toolbar visible when the user is editing an inplace active object. The technique makes both the container and the server toolbars visible during inplace editing. MORE INFORMATION
During inplace activation, MFC shows and hides control bars that have the
CBRS_HIDE_INPLACE style used in the COleClientItem::OnShowControlBars()
function, which can be found in the MFC source code (Olecli2.cpp).
The SetBarStyle() call removes the CBRS_HIDE_INPLACE style by performing a
bitwise XOR operation with the existing style for the toolbar.
NOTE: The resulting behavior depends on the server's implementation. For example, Word 6.0 always puts its toolbar at position (0,0). In this case, Word's toolbar will be placed in front of the container's toolbar. Most servers place their toolbar beneath the container's toolbar as expected. Additional query words:
Keywords : kbole kbMFC kbVC200 kbVC210 kbVC400 kbVC410 kbVC500 kbVC600 |
Last Reviewed: August 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |