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

    We have a problem with a Button

    Hello people.

    I have a bit problem with a Standard button under VC5.0.

    I need to know what function i can use what checks if the button is pressed.


    thx people plz help me out..





  2. #2
    Join Date
    May 1999
    Location
    Atlanta, GA, USA
    Posts
    443

    Re: We have a problem with a Button

    Hi.

    For example, if we click the button by the mouse, the message box
    says "Click by mouse". If we push the button by Enter key,
    the message box says "Push the button."
    If you want this program, try PreTranslateMessage() and CWnd GetFoucs(). And check mouse click and enter key, and compare CWnd of button
    and GetFocus().
    Probably works.

    HTH.
    -Masaaki Onishi-


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