Subclassing edit control - slight problem

This is a discussion on Subclassing edit control - slight problem within the Windows Programming forums, part of the Platform Specific Boards category; OK ... I've subclassed an edit control to intercept the tab key (to move the focus to another edit control). ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    20

    Subclassing edit control - slight problem

    OK ... I've subclassed an edit control to intercept the tab key (to move the focus to another edit control). This works fine apart from one small problem - everytime I hit the tab key the program beeps at me

    Any ideas what's going on?

    Regards

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    That's just the default behaviour when you reach the end of the edit. To my knowledge, there is nothing you can do about it.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    20
    Trouble is, it's not the end of the edit ...

  4. #4
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    try trapping WM_CHAR for the tab key and return 0 for the case of the tab key every thing else return the default edit proc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  2. Buttons + Edit Control
    By jay kay in forum Windows Programming
    Replies: 6
    Last Post: 03-09-2005, 04:36 PM
  3. How can I send a text string to an edit control
    By marc74 in forum Windows Programming
    Replies: 5
    Last Post: 01-06-2005, 09:14 PM
  4. Controlling an edit control
    By master5001 in forum Windows Programming
    Replies: 2
    Last Post: 10-16-2001, 03:08 PM
  5. Rich edit control example Win API
    By Echidna in forum Windows Programming
    Replies: 1
    Last Post: 09-17-2001, 02:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21