Changing Windows ribbon background color does not seem to work anymore in windows 10 v.1809 and newer builds. RRS feed

  • Question

  • It was possible with earlier windows 10 versions. Here is a code snippet that used to work with windows 7, windows 8 and windows 10 earlier versions:

    IPropertyStore *spPS = NULL;

           //the 'gpFw' is a valid IUIFramework pointer...

    if(SUCCEEDED(gpFw->QueryInterface(__uuidof(IPropertyStore),(void **)&spPS))) {
    PROPVARIANT propvarBackground;
    UI_HSBCOLOR bg = 0x00C8000; //this should set bg color to black(ish)

    InitPropVariantFromUInt32(bg, &propvarBackground);
    spPS->SetValue(UI_PKEY_GlobalBackgroundColor, propvarBackground);

    No errors but nothing is changed.

    Monday, June 24, 2019 9:40 AM