Thread: Tabbing around :)

  1. #16
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    ** Never mind it works
    So I understand that the OriginalEditProc stands for the Edit Proc in general and not specific per editbox control, right?


    --------
    One problem, how do i keep track of the OriginalEditProc values.
    If i have more than one editbox control i would like to change, can i use only one Proc?

    Code:
    LRESULT CALLBACK MyEditBoxProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
     {
        if (Msg == WM_CHAR)
           if (wParam == VK_TAB) {
              SetFocus(GetNextDlgTabItem(GetParent(hwnd), hwnd, 0));
              return 0;
           }
        return CallWindowProc(OriginalEditProc, hwnd, Msg, wParam, lParam);
    }
    Last edited by Devil Panther; 07-02-2005 at 06:46 AM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #17
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    One last question, if we are on the WS_TABSTOP subject.

    Should the style work on owner drawn buttons?
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  3. #18
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,971
    >> Should the style work on owner drawn buttons?
    It does, but you may have to draw the focus rectange yourself (or whatever method you use to indicate focus).

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with an If loop..
    By Sedvan in forum C++ Programming
    Replies: 48
    Last Post: 01-29-2008, 01:03 PM
  2. ListBox, tabbing
    By ElastoManiac in forum Windows Programming
    Replies: 5
    Last Post: 12-03-2005, 04:26 PM
  3. Tabbing not working
    By Hunter2 in forum Windows Programming
    Replies: 5
    Last Post: 05-14-2004, 11:23 AM
  4. Tabbing through Edit Boxes (not MFC)
    By jdinger in forum Windows Programming
    Replies: 4
    Last Post: 03-24-2002, 04:50 PM
  5. Can't Implement Tabbing
    By Invincible in forum Windows Programming
    Replies: 10
    Last Post: 02-27-2002, 05:09 AM