CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    57

    how to define "double click"?

    How to define "double click" in win32 api?
    I know "single click":
    WM_LBUTTONDOWN and WM_LBUTTONUP.
    Is there any WM_xxx for double click?
    And can u give me some sample code?
    Thanks.

  2. #2
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: how to define "double click"?

    Quote Originally Posted by jesschen
    How to define "double click" in win32 api?
    I know "single click":
    WM_LBUTTONDOWN and WM_LBUTTONUP.
    WM_LBUTTONDBLCLK
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  3. #3
    Join Date
    May 2007
    Posts
    680

    Re: how to define "double click"?

    To recieve this notification your window must have the style known as "CS_DBLCLKS".
    Just sayin' but I'm 14(I'm telling you this so you know what sort of language to use).
    Advice received by a user.

  4. #4
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: how to define "double click"?

    Quote Originally Posted by .pcbrainbuster
    To recieve this notification your window must have the style known as "CS_DBLCLKS".
    You probably mean Class Style (CS_...), not Window Style (WS_...).
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  5. #5
    Join Date
    May 2007
    Posts
    680

    Re: how to define "double click"?

    I did It seems I've gotten to used to tagging styles with windows. By the way OP - You set the style when you're registering the window.
    Just sayin' but I'm 14(I'm telling you this so you know what sort of language to use).
    Advice received by a user.

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