Click here to Skip to main content
15,563,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Playing avi file Pin
Nuri Ismail8-May-09 23:53
Nuri Ismail8-May-09 23:53 
AnswerRe: Playing avi file Pin
Hamid_RT9-May-09 1:20
Hamid_RT9-May-09 1:20 
QuestionMS Access with MFC Pin
mathy8-May-09 21:07
mathy8-May-09 21:07 
AnswerRe: MS Access with MFC Pin
Nuri Ismail9-May-09 0:06
Nuri Ismail9-May-09 0:06 
AnswerRe: MS Access with MFC Pin
Hamid_RT9-May-09 1:12
Hamid_RT9-May-09 1:12 
QuestionMessageBox Pin
Davitor8-May-09 21:00
Davitor8-May-09 21:00 
AnswerRe: MessageBox Pin
Nuri Ismail8-May-09 23:43
Nuri Ismail8-May-09 23:43 
QuestionHow to send a message Pin
john56328-May-09 20:57
john56328-May-09 20:57 
Hi,

How can send a message to a running application from another running application.
I tried with FindWindow(), to find the window and PostMessage() to it.
But somtimes FindWindow() is not able to figure out the desired window.

I think I have to use the registred class name instead of Window Name...
So please tell me how to do that..
My app is SDI(VS 2003). And window registration code is

<br />
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)<br />
{<br />
	if( !CFrameWnd::PreCreateWindow(cs) )<br />
		return FALSE;<br />
	// TODO: Modify the Window class or styles here by modifying<br />
	//  the CREATESTRUCT cs<br />
<br />
	cs.dwExStyle &= ~WS_EX_CLIENTEDGE;<br />
	cs.lpszClass = AfxRegisterWndClass(NULL,NULL,NULL,AfxGetApp()->LoadIcon(IDR_MAINFRAME));<br />
	cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;<br />
	return TRUE;<br />
}<br />
<br />


But the AfxRegisterWndClass() return a window name that is like afx:0000:50000......
Is there any way to register the window with user defind name so that I can use this name with FindWindow().
AnswerRe: How to send a message Pin
Hamid_RT9-May-09 1:22
Hamid_RT9-May-09 1:22 
AnswerRe: How to send a message Pin
«_Superman_»9-May-09 5:34
professional«_Superman_»9-May-09 5:34 
QuestionWindow taskbar activation issue [modified] Pin
andrew_dk8-May-09 20:56
andrew_dk8-May-09 20:56 
AnswerRe: Window taskbar activation issue Pin
Stuart Dootson9-May-09 1:37
professionalStuart Dootson9-May-09 1:37 
QuestionHelp creating a help dialog Pin
xzing8-May-09 20:48
xzing8-May-09 20:48 
AnswerRe: Help creating a help dialog Pin
Hamid_RT9-May-09 1:15
Hamid_RT9-May-09 1:15 
AnswerRe: Help creating a help dialog Pin
Stuart Dootson9-May-09 1:22
professionalStuart Dootson9-May-09 1:22 
QuestionText with backspace in Transparent window Pin
gcorrea8-May-09 17:18
gcorrea8-May-09 17:18 
AnswerRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 1:20
professionalStuart Dootson9-May-09 1:20 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 6:26
gcorrea9-May-09 6:26 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 7:01
professionalStuart Dootson9-May-09 7:01 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 9:19
gcorrea9-May-09 9:19 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 9:30
professionalStuart Dootson9-May-09 9:30 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 10:58
gcorrea9-May-09 10:58 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 11:09
professionalStuart Dootson9-May-09 11:09 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 11:42
gcorrea9-May-09 11:42 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 11:48
professionalStuart Dootson9-May-09 11:48 

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.