我在资源文件里定义了一个对话框,ID是IDD_DIALOG1,现在我想在C**APP文件中想调用这个对话框让它弹出来,应该调用那个函数?需要把对话框用一个变量来表示,然后使用变量的属性吗?直接使用ID号可不可以把这个对话框给调用出来。 谢谢

解决方案 »

  1.   

    Create a new dialog class bind the IDD_DIALOG1 to it. In InitInstance define a variable of the dialog, and DoModal().
      

  2.   

    CYourDialog dlg;
    int ret=dlg.DoModal(); CYourDialog 是你的对话框类
      

  3.   

    使用::RegisterHotKey注册热键
      

  4.   

    谢谢以上各位我现在唯一的问题是如何把那个最小化的窗口给显示出来,因为我用mfc,我找不到窗口的句柄。