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
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)<br />
if( !CFrameWnd::PreCreateWindow(cs) )<br />
return FALSE;<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 />
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().