Thread: Dialog Edit Control and Enter Key

  1. #1
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

    Dialog Edit Control and Enter Key

    I'm creating a dialog app in MFC, and I've got 1 multi-line edit control on the dialog, and a couple of buttons, and a couple of single-line edit controls. My problem comes from the multi-line edit control. Whenever I hit the enter key, the application closes.

    The properties of the multi-line control are:
    - Mutiline
    - Auto VScroll
    - Auto HScroll
    - Static border
    - Tab stop

    I've searched MSDN for some info on this, but I couldn't find anything to actually help me. Does anyone have any idea on what's going on here?

    BTW: It's all default. I haven't added any code of my own, I just added the edit controls, labels, frames, and buttons.

    *EDIT:* I also tried initializing the CommonControlsEx, but MSVC++ kept spitting out a "ICC_STANDARD_CLASSES cannot be found" error.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    .....
    gg

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Ahh crap!

    Why didn't I think of that...

    All well...thanks a lot for the help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 11:56 AM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Edit Control in Dialog
    By Jaken Veina in forum Windows Programming
    Replies: 2
    Last Post: 06-28-2005, 04:19 PM
  4. edit control in dialog box problems
    By Bajanine in forum Windows Programming
    Replies: 11
    Last Post: 11-11-2002, 06:55 PM
  5. Get Notified of ENTER in single line EDIT control
    By Morpheus in forum Windows Programming
    Replies: 1
    Last Post: 06-29-2002, 07:07 PM