Click here to Skip to main content
15,916,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running MFC Exe in other computers Pin
Garth J Lancaster11-Nov-09 22:54
professionalGarth J Lancaster11-Nov-09 22:54 
GeneralRe: Running MFC Exe in other computers Pin
hellogany11-Nov-09 23:07
hellogany11-Nov-09 23:07 
QuestionFile existance in Zip Flder Pin
002comp11-Nov-09 21:42
002comp11-Nov-09 21:42 
AnswerRe: File existance in Zip Flder Pin
Garth J Lancaster11-Nov-09 22:23
professionalGarth J Lancaster11-Nov-09 22:23 
GeneralRe: File existance in Zip Flder Pin
002comp11-Nov-09 23:31
002comp11-Nov-09 23:31 
GeneralRe: File existance in Zip Flder Pin
Garth J Lancaster11-Nov-09 23:44
professionalGarth J Lancaster11-Nov-09 23:44 
GeneralRe: File existance in Zip Flder Pin
002comp11-Nov-09 23:59
002comp11-Nov-09 23:59 
QuestionHow to get other program's MessageBox Handle without title ? Pin
wangningyu11-Nov-09 21:28
wangningyu11-Nov-09 21:28 
Hello everybody !

Now I use VC6 to new a dialog program,and add this code into the OnOK() function:

void CMFCDlg::OnOK() <br />
{<br />
	// TODO: Add extra validation here<br />
	MessageBox("","",MB_OK);<br />
}


and now I new other SDI program to get the MessageBox Handle:
void CMainFrame::OnFileNew() <br />
{<br />
	// TODO: Add your command handler code here<br />
	HWND hWnd1,hWnd2;<br />
	hWnd1 = ::FindWindow(NULL,"MFC");// Here is the Main Window title.<br />
	hWnd2 = ::FindWindowEx(hWnd1,NULL,"#32770",NULL);<br />
	if(!hWnd2)<br />
	{<br />
			MessageBox("Get Window Handle is failed!");<br />
	}<br />
}


I try it more ,but is failed. the result isn't same as SPY++.

How to get other program's MessageBox Handle without title ?


thanks for your reply!

Best Reguards!
AnswerRe: How to get other program's MessageBox Handle without title ? Pin
Covean11-Nov-09 21:54
Covean11-Nov-09 21:54 
GeneralRe: How to get other program's MessageBox Handle without title ? Pin
wangningyu11-Nov-09 21:57
wangningyu11-Nov-09 21:57 
GeneralRe: How to get other program's MessageBox Handle without title ? Pin
Covean11-Nov-09 22:07
Covean11-Nov-09 22:07 
GeneralRe: How to get other program's MessageBox Handle without title ? Pin
wangningyu11-Nov-09 22:21
wangningyu11-Nov-09 22:21 
QuestionBullets in editbox Pin
sonualex11-Nov-09 21:28
sonualex11-Nov-09 21:28 
AnswerRe: Bullets in editbox Pin
Madhu Nair11-Nov-09 21:33
Madhu Nair11-Nov-09 21:33 
GeneralRe: Bullets in editbox Pin
sonualex11-Nov-09 22:15
sonualex11-Nov-09 22:15 
GeneralRe: Bullets in editbox Pin
Madhu Nair19-Nov-09 3:57
Madhu Nair19-Nov-09 3:57 
Questionarray implementation Pin
cool_joy211-Nov-09 19:17
cool_joy211-Nov-09 19:17 
AnswerRe: array implementation Pin
Madhu Nair11-Nov-09 20:17
Madhu Nair11-Nov-09 20:17 
GeneralRe: array implementation Pin
cool_joy215-Nov-09 19:58
cool_joy215-Nov-09 19:58 
AnswerRe: array implementation Pin
Madhu Nair19-Nov-09 3:52
Madhu Nair19-Nov-09 3:52 
GeneralRe: array implementation Pin
cool_joy220-Nov-09 20:47
cool_joy220-Nov-09 20:47 
AnswerRe: array implementation Pin
Adam Roderick J11-Nov-09 21:19
Adam Roderick J11-Nov-09 21:19 
AnswerRe: array implementation Pin
David Crow12-Nov-09 5:20
David Crow12-Nov-09 5:20 
Questionpassing string as first parameter in sprintf Pin
Kiran Pinjala11-Nov-09 19:15
Kiran Pinjala11-Nov-09 19:15 
AnswerRe: passing string as first parameter in sprintf Pin
Randor 11-Nov-09 20:19
professional Randor 11-Nov-09 20: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.