CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to get click event for MaskEditBox

    I'm using VB5 and I would like to perform an action when the user clicks on a MaskEditBox control.
    But this control doesn't have a click event!
    Does anybody know how I can solve this problem?
    Do I have to use API's or some other control?


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How to get click event for MaskEditBox

    Wow!, that was a find.. no click event?!!

    If have heard there is a new service pack for the Vb 5.0's version.. but i dont think there will be such a major change as to add a new event!

    IF you notice it has no mouse events at all. no mousemove, no mouse down..

    So only way out is Subclassing i think. After you subclass you can look for WM_MOUSEDOWN, followed by UP with in a certain interval of time, and region too.

    Or you can look for WM_ACTIVATE with WA_CLICKACTIVE for wParam.
    Try it. if it works / wont work let me know.

    RK

  3. #3
    Guest

    Re: How to get click event for MaskEditBox

    Thank's for your reply
    I'm afraid to loose time if I'm using the API because I'm not really an expert with API.
    For the moment, I solve the problem by using the GotFocus event of the MaskEditBox.


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