[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can i access Arrow keys in MFC

Posted on 2004-11-10
6
Medium Priority
?
179 Views
Last Modified: 2013-11-20
Hi,

 How can i acess the arrow keys events in MFC. I am working with dialog based application.

thanking you

Vihar
0
Comment
Question by:vihar123
  • 4
  • 2
6 Comments
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12543097
u can use GetAsyncKeyState() and pass the scan codes of keys

0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12543113
i.e
GetAsyncKeyState(VK_DOWN)
GetAsyncKeyState(VK_UP)
etc.
0
 

Author Comment

by:vihar123
ID: 12543141
Thank you for your reply.
if i press down arrow,  i am not getting any message to "nChar" from OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)  function.  If i want to use arrow keys, is there any need to write extra code?

Vihar
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 6

Accepted Solution

by:
Amritpal Singh earned 375 total points
ID: 12543160
are u using Cedit control??
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12543183
n e ways ,have  a look at the article
support.microsoft.com/support/kb/articles/Q104/6/37.asp
0
 

Author Comment

by:vihar123
ID: 12543203
No i am not using CEdit Control. I have picture control on my dialog.

Thank you.

Vihar
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month18 days, 20 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question