如何使 Win32 对话框出现在默认位置(CW_USEDEFAULT)? [英] How to make a Win32 dialog appear at the default position (CW_USEDEFAULT)?
本文介绍了如何使 Win32 对话框出现在默认位置(CW_USEDEFAULT)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使 Win32 对话框 以默认位置/大小显示?
How do I make a Win32 dialog appear at the default position/size?
(即当窗口已经创建时,如何为 CreateWindow
模拟 CW_USEDEFAULT
)?
(i.e. How do I simulate CW_USEDEFAULT
for CreateWindow
when the window is already created)?
推荐答案
使用 CW_USEDEFAULT
创建一个临时的不可见窗口并查看它的位置.将对话框移到那里.
Create a temporary invisible window with CW_USEDEFAULT
and see where it gets positioned. Move your dialog there.
这篇关于如何使 Win32 对话框出现在默认位置(CW_USEDEFAULT)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文