[英]regarding mfc dialog bar
I am new to MFC and VC++ programming. 我是MFC和VC ++编程的新手。 I have two questions:
我有两个问题:
Thanks! 谢谢!
So i assume we are working in visual studios 2008 or similar and i assume you have an MFC SDI or MDI application that you are working on. 因此,我假设我们正在Visual Studio 2008或类似产品中工作,并且我假设您正在使用MFC SDI或MDI应用程序。
To (display/ give context) your dialog bar, instantiate and get the handle of the dialog. 要(显示/提供上下文)对话框栏,请实例化并获取对话框的句柄。 Like
喜欢
GetDlgItem(ID)-> ShowWindow(SW_SHOW);//show
Where ID
is the id of the dialog. 其中,
ID
是对话框的ID。 You can obtain this by going into the resource viewer, right click on the dialog, properties, and the ID
is given in there. 您可以通过进入资源查看器,右键单击对话框,属性并在其中提供
ID
来获得此信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.