UpdateLayeredWindow函数修改不了子窗口吗?

mvpwuqiang 2009-09-06 01:39:23
我使用UpdateLayeredWindow函数按图片样式制作异型窗口
弹出和分层窗口都可以..
但是我把窗口style设置有WS_CHILD属性就无法修改了....

因为我需要把异型窗口设置成主窗口的子窗口...这样方便跟主窗体一致的运动
如果有WS_CHLID属性UpdateLayeredWindow就无法使用,
那我只有不使用此属性,然后修改异型窗口和主窗口连动了

大家有无用过此函数,类似的问题处理方法?
...全文
253 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
mainone0001 2011-07-28
  • 打赏
  • 举报
回复
看看怎么说
mvpwuqiang 2009-09-06
  • 打赏
  • 举报
回复
Thank you! 那就只有自己设置与主窗口的连动了!
哎,英语不好.......做程序员最大的悲哀
feilinhe 2009-09-06
  • 打赏
  • 举报
回复
msdn里面说:
To create a layered window, specify the WS_EX_LAYERED extended window style when calling the CreateWindowEx function, or call the SetWindowLong function to set WS_EX_LAYERED after the window has been created. After the CreateWindowEx call, the layered window will not become visible until the SetLayeredWindowAttributes or UpdateLayeredWindow function has been called for this window. Note that WS_EX_LAYERED cannot be used for child windows.

15,980

社区成员

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

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