窗口大小改变

zhangwuji1223 2008-08-07 01:07:34
我的CDialog的风格被设置为了none, 现在我想实现窗口的大小改变过程。 发送一个WM_Onsize ? 我想的是尽量使用Windows的方法来解决问题。。。。
...全文
115 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
quleaf 2008-08-07
  • 打赏
  • 举报
回复
ArrangeIconicWindows
Arranges all the minimized (iconic) child windows.

BringWindowToTop()
Brings CWnd to the top of a stack of overlapping windows.

CloseWindow()
Minimizes the window.

GetClientRect()
Gets the dimensions of the CWnd client area.

GetWindowPlacement()
Retrieves the show state and the normal (restored), minimized, and maximized positions of a window.

GetWindowRect()
Gets the screen coordinates of CWnd.

GetWindowRgn
Retrieves a copy of the window region of a window.

IsIconic
Determines whether CWnd is minimized (iconic).

IsZoomed
Determines whether CWnd is maximized.

MoveWindow
Changes the position and dimensions of CWnd.

SetWindowPlacement
Sets the show state and the normal (restored), minimized, and maximized positions for a window.

SetWindowPos
Changes the size, position, and ordering of child, pop-up, and top-level windows.

SetWindowRgn
Sets the region of a window.

cnzdgs 2008-08-07
  • 打赏
  • 举报
回复
MoveWindow
scutLiu 2008-08-07
  • 打赏
  • 举报
回复
使用SetWindowPos这个API就可以了
不过要注意最后一个参数的设置,具体查看该API的帮助信息就可以了
candyice 2008-08-07
  • 打赏
  • 举报
回复
SetWindowPos(....)
hhhh63 2008-08-07
  • 打赏
  • 举报
回复
this->MoveWindow(....);
JOKER_FISH 2008-08-07
  • 打赏
  • 举报
回复
MOVEWINDOW 来解决应该就可以了吧
zhangwuji1223 2008-08-07
  • 打赏
  • 举报
回复
我昨晚搜索了一个多小时总算解决了, 但是绘图却出错了。。
我用的是nvhittest

15,979

社区成员

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

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