473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VC++ Message map is not capturing Ctrl-C key press event

When I do a Ctrl-C(copy) on a text, the text was not copied. By narrowing down the problem I found that VC++ message map is not capturing the Ctrl-C key press event(Only captures the first key press, that is Ctrl) and ,so the text was not copied. Is this a bug? anyone could help me to get resolve this problem.
Sep 19 '07 #1
1 4896
weaknessforcats
9,208 Expert Mod 8TB
It's not your message map so much as it is the WndProc. Are you able to get to this? If so you need to handle WM_KEYDOWN for the CTRL and set a switch so that if the switch is set on the next WM_KEYDOWN you can check for the second key. Be sure to turn the switch off.
Sep 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bilal | last post by:
Hi, Is there any way to capture the action Ctrl+N (whether it in a hidden button or keyword - doesn't matter) in html, javascript or php? I appreciate any suggestions. Thank you and kind regards...
6
by: Ed | last post by:
I've been away from C++ programming for awhile. Maybe this is a simple problem. I get the error message "illegal call of non-static member function" when I insert DWORD hotkey;...
6
by: Vidya | last post by:
Hi, Is there an option in Microsoft Visual C++ 6.0 to comment/uncomment chunks of code ? Thanks, Vidya. ps: apologies if wrong group.
5
by: Tim Marshall | last post by:
In an A97 app I'm redeveloping, I've got a field in a table called TS_LAST_PRINT which indicates the last date this record was printed. That is a hard copy was produced, not an on screen print...
3
by: Tobias Froehlich | last post by:
Hi! is it possible to extract all the code of a project (or a single .cs file) into a text file? I mean of course I can just do ctrl-c and ctrl-v, but it would be great if the colors would be...
0
by: veena | last post by:
hello, i have got a problem of how to capture two keys when pressed together i.e in my task i require certain action to be performed when the ctrl and 'A' keys are pressed together i.e i need to...
12
by: Chris Stankevitz | last post by:
I declare two variables and call a function. The second to last statement seems fishy to me. My other non-static function calls to other methods in the same class do not have "this" line. ...
5
by: Kim Nørby Andersen | last post by:
Hello there I am lost. i receive the output in the bottom, from a site that runs excellently on our development server, but dies on the customer. We have had a first version running at the...
1
by: Matyi | last post by:
Hello everybody! I've this problem: I'm working on a download meter, based on wpcap. As wpcap code is unmanaged, I decided to create the needed functions in a unmanaged project (one for...
2
by: John | last post by:
Hi How can I capture control keys Ctrl-A, Ctrl-B, Ctrl-C etc. in a form? Thanks Regards
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.