基于Dailogbox的Win32应用程序 [英] Dailogbox based win32 application
本文介绍了基于Dailogbox的Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
m根据对话框创建Win32应用程序
我想创建一个箭头按钮来展开我的对话框,就像Windows 7中的复制对话框一样,它具有显示更多详细信息的箭头.
请重播..
解决方案
这是通过调整对话框的大小来完成的.
最初在设计对话框时,它会以完整尺寸显示.
在OnInitDialog
函数中,使用SetWindowPos
并为cy
参数指定较小的值.
单击按钮后,再次使用cy
参数的完整值调用SetWindowPos
.
我怀疑您正在考虑 ^ ],它允许为长时间运行的进程显示大量细节.
>
Hi,,
m creating a Win32 application , based on dialog box
I want to create an arrow button to expand my dialog box , just like a copy dialog box in windows 7, which has arrow to show more details.
please replay ..
解决方案
This is done by resizing the dialog.
Initially when designing the dialog, it is done in full size.
In theOnInitDialog
function, useSetWindowPos
and specify and smaller value for thecy
parameter.
When the button is clicked, callSetWindowPos
again with the full value for thecy
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屋!
查看全文