Thread: Edit Control in Dialog

  1. #1
    Work in Progress..... Jaken Veina's Avatar
    Join Date
    Mar 2005
    Location
    Missouri. Go Imos Pizza!
    Posts
    256

    Edit Control in Dialog

    I've been working on a project for the past month or so, and recently I decided to change the layout and turn the main window into a dialog. Before, I had four main edit controls. Now, there's only one, and I've given it all the same styles, etc, but in my new version, the edit control does not accept the Enter key through the WM_CHAR message like it did before. Even when I create the Edit control dynamically, instead of through the resource, using the exact same code as I did in the old version. The only thing different is that the parent is a dialog instead of a window. Does anyone know how I can intercept the user input from the Enter key.
    Code:
    void function(void)
     {
      function();
     }

  2. #2
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    Use: ES_WANTRETURN | ES_MULTILINE, for the edit box style

  3. #3
    Work in Progress..... Jaken Veina's Avatar
    Join Date
    Mar 2005
    Location
    Missouri. Go Imos Pizza!
    Posts
    256
    Ahh. Thanks a lot.
    Code:
    void function(void)
     {
      function();
     }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Edit control in dialog picking up keys too fast
    By The Wazaa in forum Windows Programming
    Replies: 10
    Last Post: 03-08-2006, 01:39 AM
  2. Updating a list control
    By MPSoutine in forum Windows Programming
    Replies: 2
    Last Post: 12-05-2003, 02:03 AM
  3. endless edit control
    By ZerOrDie in forum Windows Programming
    Replies: 3
    Last Post: 03-21-2003, 02:51 AM
  4. Keeping focus on an edit control ...
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 02-19-2002, 02:12 AM
  5. please help visual c++ edit control boxes
    By alcoholic in forum C++ Programming
    Replies: 3
    Last Post: 02-05-2002, 02:39 PM