Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to solve this

Status
Not open for further replies.

wardhan

Programmer
Sep 15, 2001
10
JP
Dear Friends
I want to display content to output display only after key down event i.e. if a particular key a pressed. WM_PAINT message is always the last message and it can post into the message queue after once InvalidateRect is executed.
But I am unable to get the result. So please help me in getting the solution.
Another thing how can we keep track of a particular event consecutively i.e. next, next and next. Can we use a variable with function keys like VK_Fi.

So please give me the answer as soon as possible and help me.

For that I shall ever be grateful to all of you.
Thanking you in advance
Binay Wardhan
 
PreTranslateMessage would be the way to go.

If the event is WM_KEYDOWN you get the data and compare it to your key value. if it is your key then your done otherwise call up to PreTranslateMessage in the parent.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top