如何使用SetWindowLong修改窗口的大小

ykbbx 2007-02-09 05:59:51
如题,我想知道的是如何给这个函数传参才能修改窗口大小,最好能讲得详细一点。谢谢
...全文
527 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzg0001 2007-02-10
  • 打赏
  • 举报
回复
MoveWindow 不是更好?
或者 SetWindowPlaent..(单词记不清了!)其一般与 GetWindowPlaent...、AdjustWindowPlaent...联用。
shootingstars 2007-02-09
  • 打赏
  • 举报
回复
The SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.
这个API似乎与修改窗体大小没有关系。

你可以使用SetWindowsPos修改窗体大小。
The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order.

15,975

社区成员

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

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