创建子对话框 [英] creating child dialog box

查看:73
本文介绍了创建子对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用dsplayer 使用DirectShow播放音频和视频 [在 ^ ]中他们使用

i am using dsplayer Playing audio and video using DirectShow[^] in which they created dialog box using

g_hDialogWindow = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_DLGDSPLAYER), NULL, (DLGPROC)DlgDSPlayerProc);



现在我想创建另一个子对话框,以从用户那里获取输入

所以我在资源中添加了另一个对话框

并且在winmain中我添加了



now i want to create another child dialog box for taking input from user

so i have added another dialog box into resource

and in winmain i added

g_hDialogWindow2 = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_DLGDSPLAYER2), NULL, (DLGPROC)DlgDSPlayerProc2);



但是我只能看到两个确定的按钮,然后单击取消",甚至对话框的背景也不可见.



but i am able to see only two button ok and cancel , even dialog background is also not visible.

推荐答案

看起来像您忘记为您的所有消息返回FALSE对话程序不处理.因此,要么插入

Looks like you forgot to return FALSE for all messages that your dialog procedure does not process. So either insert a

return FALSE;



最后,或插入



at the end, or insert a

switch (message)
{
  ...
default:
    return FALSE;
}



switch语句中的默认大小写.



default case in the switch statement.


这篇关于创建子对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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