Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用像素图作为窗口的备份,以便在暴露事件下恢复它。调整窗口大小时,我必须调整备份像素图的大小吗?
如果是这样,最好的方法是什么?用新尺寸创建一个新的像素图?
是的你是对的。
如果窗口被调整为更小的尺寸,你只需剪掉它。
如果窗口更大,您将再次分配给新大小。
我的建议也是看看