在vc中窗口A中有按钮,点击打开窗口B,我有多个窗口,但是没办法调用,我是一个初学者
解决方案 »
- QQ的聊天对话框窗口,不是模式也不是非模式的,怎么做的,请大家说说看?
- 请问高手,c++/vc怎么写接口(interface)!!!!!!!!!!!!
- 如何获取局域网中一台计算机的当前登录的用户名?
- 有没有比较好用的属性类?
- 关于编辑框内滚动条更新问题(在线等待,解决后立即给分,谢谢)
- 800分相送,十万火急,2004年数学建模竞赛,不够再开(提供思路合理着亦有分)
- 用vc编数据库我一直不熟,最近摸索写了一个很简单的数据库相关程序,供和我一样菜的新手参考,高手不要笑话
- 请问什么叫“CTS output flow control ”和“DSR output flow control ”?
- Svn命令行下检出工程前如何判断工程是否已经检出
- 急!怎样在vs2005里加载dll?请用过touchless的大侠一定进!
- 有谁知道类似于爱科短信的免费发短信的东东是如何实现的?
- 怎样才能让数据库只允许限定的ip进行odbc或是oledb的连接?
DWORD dwExStyle, // extended window style
LPCTSTR lpClassName, // registered class name
LPCTSTR lpWindowName, // window name
DWORD dwStyle, // window style
int x, // horizontal position of window
int y, // vertical position of window
int nWidth, // window width
int nHeight, // window height
HWND hWndParent, // handle to parent or owner window
HMENU hMenu, // menu handle or child identifier
HINSTANCE hInstance, // handle to application instance
LPVOID lpParam // window-creation data
);
HWND CreateWindow(
LPCTSTR lpClassName, // registered class name
LPCTSTR lpWindowName, // window name
DWORD dwStyle, // window style
int x, // horizontal position of window
int y, // vertical position of window
int nWidth, // window width
int nHeight, // window height
HWND hWndParent, // handle to parent or owner window
HMENU hMenu, // menu handle or child identifier
HINSTANCE hInstance, // handle to application instance
LPVOID lpParam // window-creation data
);
{
CBDlg dlg;
dlg.DoModal();
}这样就OK
{
CBDlg dlg;
dlg.DoModal();
}这样显示以后,只要最小化这个窗体B,则窗体A也就最小化了而且不能进行别的操作