我想实现点击关闭按钮的时候把窗口防置到托盘区,就像最小化时动画缩小到任务栏一样。我记得有一个api来着?谁知道?要求在98下兼容!谢各位!!
解决方案 »
- 请教,oracle数据库时间比较SQL语句问题,另外一个VC中CTime类型
- CDhtmlDialog 图片保存问题
- 模式匹配 函数作用
- 请问怎么用同一个CRecordset对象反复的打开不同的记录集?
- 如何实现ToolTip
- flash(已有的.swf文件)能否在MFC对话框的控件上显示出来?用Activex插入吗?
- 請問獲取.exe文件的所在路徑的api函數是蝦米?? GetModule***? 好像不行,急需.
- 用OLE DB方式怎么访问Access数据库?
- 请问《深入浅出MFC》的第三章中的RTTI很重要吗?我实在看不下去了
- 我该考研吗?
- 请教OpenProcessToken的问题
- 如何写一个函数,其作用是将它的参数,在Windows窗口中显示出来
HWND hwnd, // handle to the window to animate
DWORD dwTime, // duration of animation
DWORD dwFlags // animation type
);
AW_SLIDE|AW_BLEND|.........
Uses slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER.
AW_ACTIVATE
Activates the window. Do not use this value with AW_HIDE.
AW_BLEND
Uses a fade effect. This flag can be used only if hwnd is a top-level window.
AW_HIDE
Hides the window. By default, the window is shown.
AW_CENTER
Makes the window appear to collapse inward if AW_HIDE is used or expand outward if the AW_HIDE is not used. The various direction flags have no effect.
AW_HOR_POSITIVE
Animates the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
AW_HOR_NEGATIVE
Animates the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
AW_VER_POSITIVE
Animates the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with AW_CENTER or AW_BLEND.
^-^ 是的话就JF咯
可以参考:
http://www.codeproject.com/dialog/canidialog.aspDraws a wire-frame rectangle and animates it to indicate the opening of an icon or the minimizing or maximizing of a window.BOOL DrawAnimatedRects(
int idAni,
CONST RECT *lprcFrom,
CONST RECT *lprcTo
);
Parameters
idAni
Specifies the type of animation. If you specify IDANI_CAPTION, the window caption will animate from the position specified by lprcFrom to the position specified by lprcTo. The effect is similar to minimizing or maximizing a window.
lprcFrom
Pointer to a RECT structure specifying the location and size of the icon or minimized window.
lprcTo
Pointer to a RECT structure specifying the location and size of the restored window
Return Value
Nonzero if the function succeeds; otherwise 0.Res
This member function emulates the functionality of the function DrawAnimatedRects, as described in the Platform SDK.See Also
CWnd Overview | Class Members | Hierarchy Chart--------------------------------------------------------------------------------Send feedback on this topic to Microsoft© Microsoft Corporation. All rights reserved.