I am trying to make my application, which is an MFC dialog based application, have the titlebar/system menu icon different from the one showing in the taskbar.
As far as I know there is only 1 icon. What you could do is handle the minimize/restore events yourself and change the icon when the window is minimized or restored.
Is there any reason to change the windows default behavior ?
My dialog application can open different dialogs each with its unique icon.. I want all those dialogs to have different icons in their system tray yet they all share the same icon in the taskbar.
My dialog application can open different dialogs each with its unique icon.. I want all those dialogs to have different icons in their system tray yet they all share the same icon in the taskbar.
I am trying to make my application, which is an MFC dialog based application, have the titlebar/system menu icon different from the one showing in the taskbar.
I wanted to suggest a hack, hoping that Windows uses different resolution of the same icon in the title bar and task bar.
Sorry, no luck – on my system they both use 32x32, 32-bit.
I guess you’d have to handle non-client painting yourself.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinWindows - replacement windows manager for Visual Studio, and more...
I wont mind doing that except I'm not what the right approach is or how can I get a handle to the taskbar button
I would suggest to leave the task bar alone (use SetIcon there), and handle NC_PAINT to paint different icon on the title bar of your window.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinWindows - replacement windows manager for Visual Studio, and more...
Handling WM_GETICON does the trick. See the sample.
Super!
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinWindows - replacement windows manager for Visual Studio, and more...
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.