Click here to Skip to main content
15,887,294 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win98 DDK -->XP Pin
Kuniva27-Jul-03 12:14
Kuniva27-Jul-03 12:14 
GeneralRe: Win98 DDK -->XP Pin
Beer2627-Jul-03 12:16
Beer2627-Jul-03 12:16 
GeneralRe: Win98 DDK -->XP Pin
Alexander M.,27-Jul-03 12:59
Alexander M.,27-Jul-03 12:59 
GeneralRe: Win98 DDK -->XP Pin
Kuniva27-Jul-03 23:22
Kuniva27-Jul-03 23:22 
QuestionHow to access a local variable from a different Dialog box Pin
Deepak Samuel27-Jul-03 10:30
Deepak Samuel27-Jul-03 10:30 
AnswerRe: How to access a local variable from a different Dialog box Pin
Joe Woodbury27-Jul-03 10:43
professionalJoe Woodbury27-Jul-03 10:43 
Generalcreating virtual directory in vc++ Pin
NewSilence27-Jul-03 10:08
NewSilence27-Jul-03 10:08 
QuestionFormView and MDI ????? Pin
_skidrow_vn_27-Jul-03 8:24
_skidrow_vn_27-Jul-03 8:24 
////////////////////////////////////////////////////////////<br />
class CLogin : public CFormView<br />
{<br />
protected:<br />
	CLogin();           <br />
	DECLARE_DYNCREATE(CLogin)<br />
public:<br />
	enum { IDD = IDD_DIALOG1 };<br />
................<br />
};<br />
////////////////////////////////////////////////////////////<br />
class CChangePassword : public CFormView<br />
{<br />
protected:<br />
	CChangePassword();           <br />
	DECLARE_DYNCREATE(CChangePassword)<br />
public:<br />
	enum { IDD = IDD_DIALOG2 };<br />
................<br />
};<br />
////////////////////////////////////////////////////////////<br />
BOOL CQLBHApp::InitInstance()<br />
{<br />
.................<br />
	AddDocTemplate(new CNewMultiDocTemplate(<br />
		IDR_QLBHTYPE,<br />
		RUNTIME_CLASS(CQLBHDoc),<br />
		RUNTIME_CLASS(CChildFrame), // custom MDI child frame<br />
		RUNTIME_CLASS(CLogin)));<br />
<br />
	AddDocTemplate(new CNewMultiDocTemplate(<br />
		IDR_QLBHTYPE,<br />
		RUNTIME_CLASS(CQLBHDoc),<br />
		RUNTIME_CLASS(CChildFrame), // custom MDI child frame<br />
		RUNTIME_CLASS(CChangePassword)));<br />
....................<br />
}<br />
////////////////////////////////////////////////////////////



I defined 2 Document Templates in my MDI App......
But I dont know how to call MDIChildWnd of CLogin (or MDIChildWnd of CChangePassword)
I mean:
When user select menu "Login" (ID_LOGIN) => Show Login MDIChildWindow
When user select menu "Change Password" (ID_CHANGE_PASSWORD) => Show Password MDIChildWindow
Could you help me ?
And ...... Login Window, ChangePassword Window have only one instance in my MDI app .......... so that I think I don't need use
Document Template. Is that right ?
Important: my MDI Child Windows must be dialog-base window(I will design controls in these dialogs by Dialog Editor)
please help me .......and a little sample code if possible (I have read MSDN but dont find what I need)
Thank a lot!Rose | [Rose]
GeneralError on OLECHAR FAR* Pin
Small Rat27-Jul-03 5:49
Small Rat27-Jul-03 5:49 
GeneralRe: Error on OLECHAR FAR* Pin
Beer2627-Jul-03 6:01
Beer2627-Jul-03 6:01 
GeneralRe: Error on OLECHAR FAR* Pin
Small Rat27-Jul-03 6:15
Small Rat27-Jul-03 6:15 
GeneralRe: Error on OLECHAR FAR* Pin
Beer2627-Jul-03 6:23
Beer2627-Jul-03 6:23 
GeneralRe: Error on OLECHAR FAR* Pin
Small Rat27-Jul-03 11:01
Small Rat27-Jul-03 11:01 
GeneralRe: Error on OLECHAR FAR* Pin
peterchen27-Jul-03 7:24
peterchen27-Jul-03 7:24 
GeneralRe: Error on OLECHAR FAR* Pin
Small Rat27-Jul-03 11:17
Small Rat27-Jul-03 11:17 
QuestionHow to lock an edit box? Pin
Aidman27-Jul-03 5:26
Aidman27-Jul-03 5:26 
AnswerRe: How to lock an edit box? Pin
Beer2627-Jul-03 5:51
Beer2627-Jul-03 5:51 
GeneralRe: How to lock an edit box? Pin
peterchen27-Jul-03 8:32
peterchen27-Jul-03 8:32 
GeneralRe: How to lock an edit box? Pin
Beer2627-Jul-03 9:09
Beer2627-Jul-03 9:09 
GeneralRe: How to lock an edit box? Pin
peterchen27-Jul-03 9:45
peterchen27-Jul-03 9:45 
AnswerRe: How to lock an edit box? Pin
peterchen27-Jul-03 7:29
peterchen27-Jul-03 7:29 
AnswerRe: How to lock an edit box? Pin
Erik Funkenbusch27-Jul-03 13:54
Erik Funkenbusch27-Jul-03 13:54 
GeneralNeed help with progress bar Pin
Snyp27-Jul-03 3:31
Snyp27-Jul-03 3:31 
GeneralRe: Need help with progress bar Pin
User 665827-Jul-03 3:42
User 665827-Jul-03 3:42 
GeneralNeed help saving.... Pin
Snyp27-Jul-03 3:19
Snyp27-Jul-03 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.