怎样让窗口最小化到托盘
窗体的ShowInTaskbar属性值为:False.并且使用notifyIcon控件,让窗体显示在托盘处...
但是将窗体最小化时...会将窗体最小化到桌面的左下角(开始菜单上面)..我想实现将窗体最小化到托盘...就像QQ那样的效果...
请高手帮帮忙
------解决方案--------------------
微软提供了这样的API函数可以实现
The DrawAnimatedRects function draws a wire-frame rectangle and animates it to indicate the opening of an icon or the minimizing or maximizing of a window.
BOOL DrawAnimatedRects(
HWND hwnd, // handle to clipping window
int idAni, // type of animation
CONST RECT *lprcFrom, // rectangle coordinates (minimized)
CONST RECT *lprcTo // rectangle coordinates (restored)
);