Thread: Bs_defpushbutton

  1. #1


    Besides putting the default shade on the button, what does this do? I thought that it kinda handles the "Enter". For instance, if my focus is on an edit (the same window) and I type a word, and then (still with focus on the edit) I hit "Enter" the DEFPUSHBUTTON would receive the enter. How would I do this?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Have you tried ES_WANTRETURN as a style for the edit?

    If that doesnt do it you could subclass the edit and filter for VK_RETURN and then discard them

  3. #3
    train spotter
    Join Date
    Aug 2001
    near a computer
    Make sure you use the MULITLINE style for the edit if you want to use ES_WANTRETURN (to set RETURN!=DEF_BUTTON)
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed