Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_CLOSE or WM_DESTROY Pin
Henry Jacobs8-Dec-01 10:38
Henry Jacobs8-Dec-01 10:38 
QuestionHow can you make a dialog show up in the taskbar? Pin
Cathy7-Dec-01 14:14
Cathy7-Dec-01 14:14 
AnswerRe: How can you make a dialog show up in the taskbar? Pin
Michael Dunn7-Dec-01 16:50
sitebuilderMichael Dunn7-Dec-01 16:50 
GeneralRe: How can you make a dialog show up in the taskbar? Pin
Cathy10-Dec-01 7:59
Cathy10-Dec-01 7:59 
GeneralGetWindowText wont work! Pin
Rickard Andersson207-Dec-01 11:33
Rickard Andersson207-Dec-01 11:33 
GeneralRe: GetWindowText wont work! Pin
Erik Thompson7-Dec-01 12:08
sitebuilderErik Thompson7-Dec-01 12:08 
GeneralRe: GetWindowText wont work! Pin
User 66588-Dec-01 3:26
User 66588-Dec-01 3:26 
GeneralRe: GetWindowText wont work! Pin
Masaaki Onishi8-Dec-01 4:52
Masaaki Onishi8-Dec-01 4:52 
Hello, the codegurus around the world.;)

I think that your approaches works to get the text in Edit box as
Paul Delicika sais in MSDN artile. Confused | :confused:

The following code works for me.
void CCodeTestDlg::OnOK() 
{
	// TODO: Add extra validation here
	CString ieTitle;
	TCHAR title[MAX_PATH];

	CWnd *pWnd = CWnd::FindWindow ("IEFrame",NULL);

	if (pWnd) {
		MessageBox ("IE is opened!", "Info");

		// By MFC
		pWnd->GetWindowText (ieTitle);
		GetDlgItem (IDC_MYSTATIC)->SetWindowText (ieTitle);

		// By Win32 API
		::GetWindowText (pWnd->m_hWnd, title, MAX_PATH);
		MessageBox (title, "Test");

	}

	else {
		MessageBox ("IE isn't opened!", "Info");
	}

//	CDialog::OnOK();
}


Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper Wink | ;)

-Masaaki Onishi-


GeneralVC++ Package Deployment Pin
Vu Nguyen7-Dec-01 11:10
Vu Nguyen7-Dec-01 11:10 
GeneralRe: VC++ Package Deployment Pin
Nemanja Trifunovic7-Dec-01 11:44
Nemanja Trifunovic7-Dec-01 11:44 
GeneralRe: VC++ Package Deployment Pin
Vu Nguyen7-Dec-01 12:25
Vu Nguyen7-Dec-01 12:25 
GeneralRe: VC++ Package Deployment Pin
Fazlul Kabir7-Dec-01 12:05
Fazlul Kabir7-Dec-01 12:05 
GeneralRe: VC++ Package Deployment Pin
Cathy7-Dec-01 14:43
Cathy7-Dec-01 14:43 
GeneralRAS problem Pin
7-Dec-01 10:28
suss7-Dec-01 10:28 
GeneralRe: Guess - RAS problem Pin
Masaaki Onishi7-Dec-01 13:24
Masaaki Onishi7-Dec-01 13:24 
GeneralRe: Guess - RAS problem Pin
7-Dec-01 15:01
suss7-Dec-01 15:01 
Generalproblem abot replace system recycle Pin
yangyanming7-Dec-01 10:25
yangyanming7-Dec-01 10:25 
GeneralDate Conversion Pin
Lilian Chan-Grant7-Dec-01 9:49
Lilian Chan-Grant7-Dec-01 9:49 
GeneralRe: Date Conversion Pin
Michael Dunn7-Dec-01 16:53
sitebuilderMichael Dunn7-Dec-01 16:53 
GeneralRe: Date Conversion Pin
Not Active7-Dec-01 17:23
mentorNot Active7-Dec-01 17:23 
GeneralRe: Date Conversion Pin
Lilian Chan-Grant2-Jan-02 6:56
Lilian Chan-Grant2-Jan-02 6:56 
GeneralRe: Date Conversion Pin
Ravi Bhavnani2-Jan-02 7:11
professionalRavi Bhavnani2-Jan-02 7:11 
GeneralRe: Date Conversion Pin
Michael Dunn2-Jan-02 7:30
sitebuilderMichael Dunn2-Jan-02 7:30 
GeneralRe: Date Conversion Pin
Lilian Chan-Grant4-Jan-02 8:01
Lilian Chan-Grant4-Jan-02 8:01 
GeneralHex values in a string Pin
Tom Wright7-Dec-01 9:27
Tom Wright7-Dec-01 9:27 

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.