Results 1 to 3 of 3

Thread: Ctrl+A not working in C++ edit box control why?

  1. #1
    Join Date
    Jan 2009
    Posts
    38

    Ctrl+A not working in C++ edit box control why?

    Hi,

    I am trying to select all the data from this box in C++ in edit box control & am not able to do so with Ctrl+A why?

    Please guide me!

  2. #2
    Join Date
    May 2008
    Posts
    44

    Re: Ctrl+A not working in C++ edit box control why?

    It does not work by default. You have to write code for that. Add an entry to the application accelerator, add a handler for it, and there select all the text.

    http://support.microsoft.com/kb/145616

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Ctrl+A not working in C++ edit box control why?

    As a programmer, you sometimes need to suppress (remove) all pending keyboard messages so that you prevent some things from happening. Here is how you do it:

    Code:
    ;Use the WM_KEYFIRST and WM_KEYLAST constants to retrieve all keyboard messages
    ;and use PM_REMOVE to remove them from the queue after processing by PeekMessage.
    
    Invoke PeekMessage,ADDR msg,hDlg,WM_KEYFIRST,WM_KEYLAST,PM_REMOVE

Similar Threads

  1. How to enable Ctrl + C and Ctrl + V in Microsoft Office 2007
    By EveryWer in forum MS Office Support
    Replies: 2
    Last Post: 16-02-2012, 06:34 PM
  2. Ctrl+Shift+V is not working in Opera 11
    By Ekhattar in forum Technology & Internet
    Replies: 4
    Last Post: 10-01-2011, 07:42 AM
  3. Dell Studio 1557 freezes, can't ctrl+alt+del to gain control`
    By Savannah87 in forum Portable Devices
    Replies: 5
    Last Post: 16-04-2010, 06:21 AM
  4. Ctrl + F find bar is not working in IE8
    By Deep123 in forum Technology & Internet
    Replies: 4
    Last Post: 11-11-2009, 02:32 AM
  5. Ctrl+Alt+Del not working
    By Jason Bourne in forum Operating Systems
    Replies: 4
    Last Post: 04-07-2009, 10:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,304,513.85116 seconds with 17 queries