帮忙设计一下这个酷软件(我以前在电脑爱好者上面看到的有VC++的实现代码)

shankaipingo 2006-10-30 10:49:22
功能:无论窗体怎么切换.都有一个卡通美女坐在最上面一个窗体顶端的左上角.

以前我有下载那种桌面宠物,宠物可以在任务栏和窗体顶端走来走去的.我想实现方法也差不多吧.

要用钩子函数吗.钩子函数怎么放?大家帮我设计设计   

...全文
188 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
shankaipingo 2006-10-31
  • 打赏
  • 举报
回复
我的意思,就是在所有置顶的窗口(不是自已进程的窗体上也要)上显示一个卡通.
ringphone 2006-10-31
  • 打赏
  • 举报
回复
窗口显示图片,SetWindowRgn成为异型窗口。
枚举窗口,获取最上面一个窗体坐标,把自己的窗口置顶叠上去。
YeTimmy 2006-10-31
  • 打赏
  • 举报
回复
就是窗口永远置顶是吗?
是的话下面SetWindowPos就可以
BOOL SetWindowPos(
HWND hWnd,
HWND hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
UINT uFlags
);
hWndInsertAfter
[in] Handle to the window to precede the positioned window in the z-order. This parameter must be a window handle or one of the following values. Value Description
HWND_BOTTOM Places the window at the bottom of the z-order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows.
HWND_NOTOPMOST Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window. This value is not supported in Windows CE 1.0 and 1.01.
HWND_TOP Places the window at the top of the z-order.
HWND_TOPMOST Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated. This value is not supported in Windows CE 1.0 and 1.01.
shankaipingo 2006-10-31
  • 打赏
  • 举报
回复
怎么放图片
zyyoung 2006-10-31
  • 打赏
  • 举报
回复
获取窗口左上角的坐标,在上面放一张图片就ok了.
shankaipingo 2006-10-31
  • 打赏
  • 举报
回复
什么呀.在浏览器上面也要有这个卡通,在我的电脑上这个窗口的左上角也要有一个卡通窗口
hxzmm 2006-10-30
  • 打赏
  • 举报
回复
哪用的着什么钩子,就是图片窗口!!

15,975

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧