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

C / C++ / MFC

 
AnswerRe: Playing avi file Pin
Nuri Ismail8-May-09 22:53
Nuri Ismail8-May-09 22:53 
AnswerRe: Playing avi file Pin
Hamid_RT9-May-09 0:20
Hamid_RT9-May-09 0:20 
QuestionMS Access with MFC Pin
mathy8-May-09 20:07
mathy8-May-09 20:07 
AnswerRe: MS Access with MFC Pin
Nuri Ismail8-May-09 23:06
Nuri Ismail8-May-09 23:06 
AnswerRe: MS Access with MFC Pin
Hamid_RT9-May-09 0:12
Hamid_RT9-May-09 0:12 
QuestionMessageBox Pin
Davitor8-May-09 20:00
Davitor8-May-09 20:00 
AnswerRe: MessageBox Pin
Nuri Ismail8-May-09 22:43
Nuri Ismail8-May-09 22:43 
QuestionHow to send a message Pin
john56328-May-09 19:57
john56328-May-09 19: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 0:22
Hamid_RT9-May-09 0:22 
AnswerRe: How to send a message Pin
«_Superman_»9-May-09 4:34
professional«_Superman_»9-May-09 4:34 
QuestionWindow taskbar activation issue [modified] Pin
andrew_dk8-May-09 19:56
andrew_dk8-May-09 19:56 
AnswerRe: Window taskbar activation issue Pin
Stuart Dootson9-May-09 0:37
professionalStuart Dootson9-May-09 0:37 
QuestionHelp creating a help dialog Pin
xzing8-May-09 19:48
xzing8-May-09 19:48 
AnswerRe: Help creating a help dialog Pin
Hamid_RT9-May-09 0:15
Hamid_RT9-May-09 0:15 
AnswerRe: Help creating a help dialog Pin
Stuart Dootson9-May-09 0:22
professionalStuart Dootson9-May-09 0:22 
QuestionText with backspace in Transparent window Pin
gcorrea8-May-09 16:18
gcorrea8-May-09 16:18 
AnswerRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 0:20
professionalStuart Dootson9-May-09 0:20 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 5:26
gcorrea9-May-09 5:26 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 6:01
professionalStuart Dootson9-May-09 6:01 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 8:19
gcorrea9-May-09 8:19 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 8:30
professionalStuart Dootson9-May-09 8:30 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 9:58
gcorrea9-May-09 9:58 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 10:09
professionalStuart Dootson9-May-09 10:09 
GeneralRe: Text with backspace in Transparent window Pin
gcorrea9-May-09 10:42
gcorrea9-May-09 10:42 
GeneralRe: Text with backspace in Transparent window Pin
Stuart Dootson9-May-09 10:48
professionalStuart Dootson9-May-09 10: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.