Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with ReadFile Funhction Pin
krmed23-Jul-09 2:51
krmed23-Jul-09 2:51 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal23-Jul-09 18:56
Shiv Murti Pal23-Jul-09 18:56 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal24-Jul-09 1:25
Shiv Murti Pal24-Jul-09 1:25 
QuestionHow to generate Keyboard events ? Pin
Member 383463022-Jul-09 21:14
Member 383463022-Jul-09 21:14 
AnswerRe: How to generate Keyboard events ? Pin
Emilio Garavaglia22-Jul-09 21:52
Emilio Garavaglia22-Jul-09 21:52 
AnswerRe: How to generate Keyboard events ? Pin
«_Superman_»22-Jul-09 22:18
professional«_Superman_»22-Jul-09 22:18 
AnswerRe: How to generate Keyboard events ? Pin
Adam Roderick J22-Jul-09 22:45
Adam Roderick J22-Jul-09 22:45 
GeneralRe: How to generate Keyboard events ? Pin
Kushagra Tiwari23-Jul-09 0:16
Kushagra Tiwari23-Jul-09 0:16 
You can use either SendMessage() or PostMessage() depending on you requirement.

There are a few subtle differences in the ways you can send messages in Windows, but the basic difference between PostMessage and SendMessage is that SendMessage sends a message to another window immediately by calling that window's procedure and waiting for it to return, whereas PostMessage queues the message in an MSG structure and returns immediately"without waiting. MSG is short for message, not monosodium glutamate.
With SendMessage, the receiving app processes the message immediately, rather than at some later time, by fetching it from its queue. For example, suppose you write:


pWnd->SendMessage(WM_KEYDOWN);
pWnd->PostMessage(WM_KEYDOWN);

There are different indicators for which key was pressed .Kindly, go through that list and do the apporopiate Smile | :)

Kushagra

I hate coding but I love to develop Smile | :)
GeneralRe: How to generate Keyboard events ? Pin
Member 383463023-Jul-09 0:43
Member 383463023-Jul-09 0:43 
AnswerRe: How to generate Keyboard events ? Pin
Adam Roderick J23-Jul-09 18:26
Adam Roderick J23-Jul-09 18:26 
QuestionGetting client computer name using its IP Pin
sunny_vc22-Jul-09 21:09
sunny_vc22-Jul-09 21:09 
AnswerRe: Getting client computer name using its IP Pin
Stuart Dootson22-Jul-09 21:40
professionalStuart Dootson22-Jul-09 21:40 
AnswerRe: Getting client computer name using its IP Pin
Emilio Garavaglia22-Jul-09 21:58
Emilio Garavaglia22-Jul-09 21:58 
QuestionHow to handle WM_KEYDOWN and WM_CHAR messages in Combo Box Pin
Pryabu22-Jul-09 20:21
Pryabu22-Jul-09 20:21 
AnswerRe: How to handle WM_KEYDOWN and WM_CHAR messages in Combo Box Pin
Code-o-mat22-Jul-09 21:19
Code-o-mat22-Jul-09 21:19 
QuestionResource Sharing issue Pin
georgekjolly22-Jul-09 20:03
georgekjolly22-Jul-09 20:03 
AnswerRe: Resource Sharing issue Pin
Code-o-mat22-Jul-09 21:40
Code-o-mat22-Jul-09 21:40 
QuestionHow can i make "make File" from VS 2005? Pin
bankey101022-Jul-09 19:40
bankey101022-Jul-09 19:40 
AnswerRe: How can i make "make File" from VS 2005? Pin
002comp22-Jul-09 19:47
002comp22-Jul-09 19:47 
GeneralRe: How can i make "make File" from VS 2005? Pin
bankey101022-Jul-09 19:59
bankey101022-Jul-09 19:59 
GeneralRe: How can i make "make File" from VS 2005? Pin
«_Superman_»22-Jul-09 20:12
professional«_Superman_»22-Jul-09 20:12 
GeneralRe: How can i make "make File" from VS 2005? Pin
bankey101022-Jul-09 20:26
bankey101022-Jul-09 20:26 
GeneralRe: How can i make "make File" from VS 2005? Pin
Stuart Dootson22-Jul-09 21:38
professionalStuart Dootson22-Jul-09 21:38 
AnswerRe: How can i make "make File" from VS 2005? Pin
_AnsHUMAN_ 22-Jul-09 22:34
_AnsHUMAN_ 22-Jul-09 22:34 
QuestionHiding Dialogs Pin
002comp22-Jul-09 19:31
002comp22-Jul-09 19:31 

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.