CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    11

    HOWTO: override the destruction of a window by clicking 'enter'

    I would like to override the default function that destroys the current dialog when I press the Enter key. To avoid this, I have to create a useless default button and set the 'default' property to it. Any solution?


  2. #2
    Join Date
    May 1999
    Location
    Toulouse, France
    Posts
    171

    Re: HOWTO: override the destruction of a window by clicking 'enter'

    Override OnOk, and don't call the base class

    HTH.

    K.

    Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.
    We're talking ****, 'cause life is a 'biz
    You know it is
    Everybody tryin' to get rich
    God ****!
    All I wanna do is live !

    KoRn, Children of the Korn

  3. #3
    Join Date
    May 1999
    Posts
    48

    Re: HOWTO: override the destruction of a window by clicking 'enter'

    Override the WM_COMMAND, send by default procedure with IDOK as parameter.
    Sincerely Mihai



  4. #4
    Join Date
    Apr 1999
    Posts
    11

    Re: HOWTO: override the destruction of a window by clicking 'enter'

    It's working, many thanks...


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

Featured