none
Ribbon height RRS feed

  • Question

  • Hi everybody,

    I’ve been doing Windows API (Win32) application in C++ with ribbon interface. Is there a way to calculate ribbon heights in all four states?

    1) Ribbon is collapsed (minimized) with quick access toolbar (QAT) above the ribbon.

    2) Ribbon is collapsed (minimized) with quick access toolbar (QAT) below the ribbon.

    3) Ribbon is expanded with quick access toolbar (QAT) above the ribbon

    4) Ribbon is expanded with quick access toolbar (QAT) below the ribbon

    I am aware there is the way to determine existing ribbon height by:

    UINT ribbon_height;

    CComPtr<IUIRibbon> ribbon;

    Ribbon_g_pFramework->GetView(0, IID_PPV_ARGS(&ribbon));

    ribbon->GetHeight(&ribbon_height);

    My question is whether there is a way to determine ribbon heights in previously mentioned four states regardless of the current ribbon state.

    Thank You very much in advance,

    Regards,

    Bojan

    Monday, December 3, 2018 9:47 AM