基于Dailogbox的Win32应用程序 [英] Dailogbox based win32 application

查看:76
本文介绍了基于Dailogbox的Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



m根据对话框创建Win32应用程序

我想创建一个箭头按钮来展开我的对话框,就像Windows 7中的复制对话框一样,它具有显示更多详细信息的箭头.



请重播..

解决方案

这是通过调整对话框的大小来完成的.
最初在设计对话框时,它会以完整尺寸显示.
OnInitDialog函数中,使用SetWindowPos并为cy参数指定较小的值.
单击按钮后,再次使用cy参数的完整值调用SetWindowPos.


我怀疑您正在考虑 解决方案

This is done by resizing the dialog.

Initially when designing the dialog, it is done in full size.
In the OnInitDialog function, use SetWindowPos and specify and smaller value for the cy parameter.
When the button is clicked, call SetWindowPos again with the full value for the cy parameter.


I suspect you are thinking of the Task Dialog[^] which allows for displaying a considerable amount of detail for long running processes.


这篇关于基于Dailogbox的Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆