Results 1 to 6 of 6

Thread: COMMAND_HANDLER_EX/ CComboBox

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    11

    COMMAND_HANDLER_EX/ CComboBox

    Ok, I'm using wtl. I'm trying to get the combo box to respond when I press enter and pass the information in the combo box to the appropriate function for processing.

    I'm using CComboBox and the following MSG_MAP:
    COMMAND_HANDLER_EX(IDC_ADDRESSBAR, CBN_SELENDOK, GoNavAddressBar)

    It doesn't work though. All I get is a "ding" when I press enter.

    If anyone could give me some suggestions I would greatly appreciate it, as I'm new to windows programming.

    Later,
    Paul
    Last edited by fullmoons; Jul 2nd, 2001 at 05:46 PM.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I'm not going to remove your kneecaps here because you showed intelligence in going for WTL rather than MFC

    However, it's still a much better idea to learn the API first (see the FAQ for links).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Parksie your just plain mean since you lost your Throbbing Member
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I'm very mean However, I fail to see the point of using a template or class library to simplify doing something you don't already know how to do yourself.

    For example, I didn't understand the STL list class, so I decided to write my own because I didn't like their method of using iterators. Fair enough, I got a nice little template going - worked nicely, and was faster than theirs. Cue smug expression, until I tried to use it for something useful. Dangling pointers all round, so I thought "okay, how about a small utility class to navigate through it"...at that point the penny dropped...iterators

    At that point I went back to the list class and it was all clear to me.

    I know this isn't about the STL, but you see my point on understanding what you're ignoring.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    I wasnt disagreeing with your point of view, because I think you are right. Not having that basic knowledge is really the wrong thing to do.

    I was just stating your mean lately
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Oh ok It's called being bored out of my skull having finished school and not starting work until September.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width