We added minimize and maximize buttons to our dialog based
application. However, when we click the minimize button,
the application minimizes to a small "title bar" application
at the bottom left corner of the desktop (just above the taskbar).
How do we get the application to minimize to the taskbar icon
that is visible?
TIA
-jc
You don't have to do anything special to get the default behaviour of
minimizing to the task bar. If you try adding a minimize button to a
default dialog application it should work as you'd hope it would. I
wonder if you're incorrectly handing some Windows message and that's
giving rise to what you're seeing.
Dave
It sounds like you have created an MDI app that is maximized, and when you
minimize one of its MDI windows, it shows a mini title bar at the lower left
corner of your app window (which being maximized, is right above the Windows
taskbar).
Could this be what happened?
-- David
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Thank you for taking the time to reply my posting.
Yes, the dialog style was set to "popup", but changing the style
to "overlapped" did not fix the problem.
As such, we decided to minimize the application to the System Tray. The
System Tray icon is working OK (both opening and minimizing the application).
But, the task bar icon is always visible. even when the icon is in the
System Tray.
How do we hide and show the taskbar icon?
TIA,
-jc
Set the WS_EX_TOOLWINDOW style.
-- David
Thank you for taking the time to reply to my posting.
Yes, setting the window style to WS_EX_TOOLWINDOW
removed the taskbar icon; however, we can dynamically
restore the taskbar icon (when the window opens).
hide:
ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);
show:
ModifyStyleEx(WS_EX_APPWINDOW, ~WS_EX_TOOLWINDOW);
How can we dynamically hide/show the taskbar icon?
TIA,
-jc
Sorry, I don't understand. You say ModifyStyleEx() allows you to
dynamically hide and show the taskbar icon, yet you ask how to do that?
Does ModifyStyleEx() work or not?
Thanks,
David
http://www.naughter.com/ntray.html
Or if you want to do it yourself you can make a call to Shell_NotifyIcon:
http://msdn.microsoft.com/en-us/library/bb762159(VS.85).aspx
Tom
"jc" <j...@discussions.microsoft.com> wrote in message
news:2E32E090-BF9E-4DBB...@microsoft.com...