且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MFC中折叠窗口

更新时间:2022-05-31 20:32:22

编写一些代码来为您完成。如果你以100毫秒的间隔改变大小,它看起来像动画。



步骤1:获取坐标并存储它们

步骤2:计算结束位置

步骤3:移动窗口1/10的差异

步骤4:你完成了



如果你想做一些非常奇特的东西:制作截图位图并操纵它(通过按钮)
write some code to do it for you. It looks like animated if you change the size in an interval of 100 ms.

Step 1: get the coordinates and store them
Step 2: calculate the endposition
Step 3: Move the windows 1/10 of the difference
Step 4: youre done

If you wanna do some really fancy stuff: make a screenshot bitmap and manipulate it (over the buttons)