开发者

Does DeferWindowPos work well with the VCL?

开发者 https://www.devze.com 2022-12-17 21:14 出处:网络
I\'m considering to 开发者_运维问答increase my usage of DeferWindowPos. Up to now I used it in some simple circumstances and didn\'t notice any problems. Do you know of any pitfalls, where e.g. the FL

I'm considering to 开发者_运维问答increase my usage of DeferWindowPos. Up to now I used it in some simple circumstances and didn't notice any problems. Do you know of any pitfalls, where e.g. the FLeft/FTop/... fields aren't updated correctly or similar things?


DeferWindowPos should't be a problem because the WM_WINDOWPOSCHANGED, WM_MOVE and WM_SIZE messages are still sent after the move/resize is finished. DeferWindowPos works as if the user moves or resized the window and the VCL keeps track of all the changes and updates FLeft, FTop, FWidth and FHeight properly.

0

精彩评论

暂无评论...
验证码 换一张
取 消