Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Writing a Questionnaire using C++ Pin
HimanshuJoshi21-Apr-11 4:29
HimanshuJoshi21-Apr-11 4:29 
AnswerRe: Writing a Questionnaire using C++ Pin
Richard MacCutchan21-Apr-11 6:45
mveRichard MacCutchan21-Apr-11 6:45 
GeneralRe: Writing a Questionnaire using C++ Pin
CPallini21-Apr-11 7:13
mveCPallini21-Apr-11 7:13 
GeneralRe: Writing a Questionnaire using C++ Pin
Richard MacCutchan21-Apr-11 8:05
mveRichard MacCutchan21-Apr-11 8:05 
AnswerRe: Writing a Questionnaire using C++ Pin
Mattias G21-Apr-11 10:18
Mattias G21-Apr-11 10:18 
QuestionRe: Writing a Questionnaire using C++ Pin
David Crow26-Apr-11 2:52
David Crow26-Apr-11 2:52 
Questionfatal error LNK1112 Pin
Walking Hell21-Apr-11 0:43
Walking Hell21-Apr-11 0:43 
AnswerRe: fatal error LNK1112 Pin
«_Superman_»21-Apr-11 1:47
professional«_Superman_»21-Apr-11 1:47 
GeneralRe: fatal error LNK1112 [modified] Pin
Walking Hell21-Apr-11 4:04
Walking Hell21-Apr-11 4:04 
GeneralRe: fatal error LNK1112 Pin
«_Superman_»21-Apr-11 4:16
professional«_Superman_»21-Apr-11 4:16 
GeneralRe: fatal error LNK1112 Pin
Walking Hell21-Apr-11 4:21
Walking Hell21-Apr-11 4:21 
GeneralRe: fatal error LNK1112 Pin
Walking Hell21-Apr-11 4:55
Walking Hell21-Apr-11 4:55 
GeneralRe: fatal error LNK1112 Pin
Richard MacCutchan21-Apr-11 6:42
mveRichard MacCutchan21-Apr-11 6:42 
GeneralRe: fatal error LNK1112 Pin
Walking Hell21-Apr-11 7:07
Walking Hell21-Apr-11 7:07 
GeneralRe: fatal error LNK1112 Pin
Walking Hell21-Apr-11 7:43
Walking Hell21-Apr-11 7:43 
GeneralRe: fatal error LNK1112 Pin
Richard MacCutchan21-Apr-11 8:04
mveRichard MacCutchan21-Apr-11 8:04 
QuestionOffice converter DLLs and thread safety Pin
Mattias G20-Apr-11 23:28
Mattias G20-Apr-11 23:28 
AnswerRe: Office converter DLLs and thread safety Pin
Roger Stoltz25-Apr-11 23:28
Roger Stoltz25-Apr-11 23:28 
GeneralRe: Office converter DLLs and thread safety Pin
Mattias G27-Apr-11 2:39
Mattias G27-Apr-11 2:39 
AnswerRe: Office converter DLLs and thread safety Pin
Roger Stoltz27-Apr-11 6:05
Roger Stoltz27-Apr-11 6:05 
GeneralRe: Office converter DLLs and thread safety Pin
Mattias G29-Apr-11 0:06
Mattias G29-Apr-11 0:06 
Questionneed help in learning AES algo. Pin
gateway2320-Apr-11 23:03
gateway2320-Apr-11 23:03 
AnswerRe: need help in learning AES algo. Pin
Hans Dietrich20-Apr-11 23:33
mentorHans Dietrich20-Apr-11 23:33 
QuestionSend a Message to a Window programmatically Pin
QuickDeveloper20-Apr-11 22:37
QuickDeveloper20-Apr-11 22:37 
Hi
I am trying to send a Message to my Internet Explorer Window.I got the handle and able to maximize the window but unable to send message.

Can anyone tell me if something is wrong in SendMessage call below?Is the message queued?Send message should wait until the message is processed right?

int _tmain(int argc, _TCHAR* argv[])
{
	
	HWND hwnd=FindWindow(L"IEFrame",NULL);
		
	if(NULL != hwnd)
	{
	  printf("\n  Retrieved the window handle \n");
	  ShowWindow(hwnd,SW_MAXIMIZE);// This line works and the browser window is maximized as well.
	  LRESULT lr=SendMessage(hwnd,WM_RBUTTONDOWN,NULL,NULL);//Here,nothing happens,even though i change the message to any other (like WM_LBUTTONDOWN etc)

		  if(lr == 0) //Since if app process WM_RBUTTONDOWN it should return zero
		  {
                          printf(" \n Message Sent \n"); //Strangely ,this output is printed though i don't see any action on browser
		  }
		  else
		  {
			 printf("\n Failed to send message \n"); 
		  }
	}
	else
	{
		printf("\n Failed to retrieve handle \n");
	}
	return 0;

}

"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"


AnswerRe: Send a Message to a Window programmatically [modified] Pin
Mattias G20-Apr-11 23:13
Mattias G20-Apr-11 23:13 

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.