?
Solved

Keyboard input in an ATL ActiveX control?

Posted on 2006-04-12
2
Medium Priority
?
453 Views
Last Modified: 2012-06-27
How do I recieve keyboard input in an ATL activeX control?

I've created a basic windowed control and when I watch it with Spy++ it never recieves an event as I type (I see wm_mousemove but never any keyboard related ones).  If it doesn't recieve an event there is nothing to trap.  I suspect that all the key presses are going to the parent (Internet Explorer in this case) but how do I intercept them?
0
Comment
Question by:jvoros1
2 Comments
 
LVL 2

Accepted Solution

by:
rahul_r_jadhav earned 1500 total points
ID: 16445099
I dont know about  ATL activeX control but to capture the keystrokes you can use hooks. http://www.codeproject.com/dll/keyboardhook.asp

if not possible not accurate but approximate way is to use
GetAsyncKeyState()
0
 

Author Comment

by:jvoros1
ID: 16445133
No, I don't think thats what I'm looking for.  Thanks though.  I'm told I have to implement IOleInPlaceActiveObject::TranslateAccelerator but I can't seem to figure out how to do that.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

809 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