VC++ 怎么给SDI界面加入像网页上输入邮箱,密码那样的对话框
1个回答
展开全部
1.添加登陆对话框资源,在资源中添加两个文本框
2.使用类向导添加对话框类,并添加成员变量
3.在应用程序类的InitInstance()方法添加代码:
CMainFrame* pFrame = new CMainFrame;
m_pMainWnd = pFrame;
// create and load the frame with its resources
pFrame->LoadFrame(IDR_MAINFRAME,
WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,
NULL);
// The one and only window has been initialized, so show and update it.
pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow();
Login dlg ;
dlg.DoModal();
2.使用类向导添加对话框类,并添加成员变量
3.在应用程序类的InitInstance()方法添加代码:
CMainFrame* pFrame = new CMainFrame;
m_pMainWnd = pFrame;
// create and load the frame with its resources
pFrame->LoadFrame(IDR_MAINFRAME,
WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,
NULL);
// The one and only window has been initialized, so show and update it.
pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow();
Login dlg ;
dlg.DoModal();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询