SHGetPropertyStoreForWindow - How to set properties on existing System.AppUserModel.ID

后端 未结 1 621
耶瑟儿~
耶瑟儿~ 2021-01-06 18:01

So I split my window from the main tab group via IPropertyStore via SHGetPropertyStoreForWindow like so:

IPropertyStore_SetValue(pp         


        
相关标签:
1条回答
  • 2021-01-06 19:00

    The solution to this topic is the workaround I am using:

    Detecting Application Pin State

    Before setting property I test if it's pinned by looking in folders of:

    • %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts
    • %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

    And I do a IPropertyStore::getValue on all the shortcuts, if it matches my AppUserModelID, then I change the icon, label, etc on that, which right away updates it in the taskbar.

    This works but I'll leave this solution unaccepted as it's not documented so probably not the right way to go about it.

    If the AppUserModel.ID is not found among the shortcuts, the i just to IPropertyStore::setValue on the windows of my application (I have to do on each window, i cant find a way to do it across the whole application)

    0 讨论(0)
提交回复
热议问题