Could someone please explain what's up?
I'm making a launcher for DOSBox. The script will place two buttons on the titlebar. One that shows/hides the console window and the other to paste text into DOSBox.
I have replaced the default icon group in dosbox.exe, leaving the default 16x16. I want to keep the default 16x16 for list, details view in explorer and titlebars.
When I launch DOSBox my new icon is on the taskbar. The problem is when I hide/show the console window the taskbar icon changes from my new icon (I believe the taskbar uses 32x32 icon by default) to the 16x16. The console window does use the 16x16 on the titlebar.
The examples below are basic examples of what's happening.
ShellExecute("dosbox.exe", "-noconsole") default 16x16 icon on taskbar
ShellExecute("dosbox.exe") new 32x32 on taskbar
Run("dosbox.exe -noconsole") default 16x16 icon on taskbar
Run("dosbox.exe") new 32x32 on taskbar
How can I stop this from happening?
or
How could I refresh the taskbar after hiding/showing the console window to have the 32x32 icon again?