English
Source / code snippets

Double click check mouse

 

Georg
Hovenbitzer
Hello together,

its ir Yes Real embarrassing this To ask but I come not behind.

i want check if one a Double click, be it left or right, on one deaktiviertes Editfeld power and this on one Mainwindow what with Window Style 8 + 16 + 512 + 1024 prepares watts.

can me there someone help ?
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
05/19/06  
 




Frank
Abbing
You must The Message WM_LBUTTONDBLCLK, or. WM_RBUTTONDBLCLK read. at that mittleren Click goes it through WM_MBUTTONDBLCLK, sofern this present is.
 
05/19/06  
 




Georg
Hovenbitzer
Hello Frank,

this have I attempts, but the come not on.
I have somewhere time red, that not any Controls these Message Send and by me is it yes a deaktiviertes Edit area.
have you got Perhaps one Piece code to that testing for me ?
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
05/19/06  
 



WM_NOTIFY isn't fundamentally staid, that's right.

there's too still whom way out into Fastmode. an Own wProc could The Message intercepting.

I zitier but too time from the Phorum: [...] 

Author: Dieter Zornow 26.08.04 07:59

Hello carlo,

I use following routine, The under all Windowsversionen
sure functions.
CompileMarkSeparation
circa these To benefit must The first whom focus to that entry bring
otherwise must You first with linkem Click Mark.

greetings from Bangkok

Dieter
 
05/20/06  
 




Frank
Abbing
plainer is:
CompileMarkSeparation
You must The User Messages settle, so tappt im dunkeln WaitInput leave...

Hm, Waitinput processing but only Messages of Mainwindow. circa Control-Messages To process, must You tappt im dunkeln subclassen.
 
05/20/06  
 



Frank Abbing
circa Control-Messages To process, must You tappt im dunkeln subclassen.

Womit we well at fastmode  are...
 
05/20/06  
 




Frank
Abbing
really not, iF. only if You the Mainwindow subclassen want.
 
05/20/06  
 




Sven
Bader
means if I it with usermessages make becomes 513 and 514 recognized (left pressed/losgelassen), The Double click Message becomes never recognized.
others wildly Konstruktionen with waitkey + getmessage + (%Message = 273) functions neither everywhere and are for programs with others inquire useless, because these then mostly not any more functions (have parallel none Buttonklick with wm_command More inquire can)

or functions with you the example?
CompileMarkSeparation
 
06/01/06  
 



with the EasyVENT.dll and Include kannste too dead easy a Mausdoppelclick check
[...] 
 
06/01/06  
 




Frank
Abbing
the goes without Dll plenty leichter...
circa Doppelklicks To receive must solely the CS_DBLCLKS Class-Style staid go. so as in the API-Help indeed standing.
CompileMarkSeparation
 
06/01/06  
 




Sven
Bader
so goes it, thanks

my previous Variante:
CompileMarkSeparation
Def Key(1) !User32,GetAsyncKeyState
Def windowfrompoint(2) !USER32,WindowFromPoint
Def GetCursorPos(1) !USER32,GetCursorPos
cls
usermessages 16
Declare dbl&, dbl%,mousepos#,oldx%,oldy%
dim mousepos#,8

PROC Doppelklick

    Parameters handle&

    if (abs(key(1)>1) ) & (dbl% = 0) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)

        dbl& = &gettickcount+400 Doppelklickzeit
        dbl% = 1
        oldx% = long(mousepos#,0)
        oldy% = long(mousepos#,4)

    elseif (abs(key(1)<2)) & (dbl% = 1)  & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)

        dbl% = 2
        case (&gettickcount > dbl&) : dbl% = 0

    elseif (abs(key(1)>1)) & (dbl% = 2)  & (&gettickcount < dbl&) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)

        if ((abs(oldx% - long(mousepos#,0))<5) & (abs(oldy% - long(mousepos#,4))<5)) Maus maximal 5 Pixel verschoben

            dbl% = 3

        else

            dbl% = 0

        endif

    elseif ((abs(key(1)>1)) & (dbl% = 2)) | (dbl% = 3)

        dbl% = 0

    endif

    return if(dbl% = 3,1,0)

EndProc

whilenot (%umessage = 16)

    waitinput
    sleep 50
    getcursorpos(mousepos#)
    case Doppelklick(%hwnd) : print Doppelklick

endwhile

dispose mousepos#
 
06/02/06  
 




Frank
Abbing
there would I The API-Variante absolutely vorziehen, because the User The Double click-Time Yes take on can.
 
06/02/06  
 




Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

21.222 Views

Untitledvor 0 min.
Gast.081509/06/24
Walter03/07/23
H.Brill02/03/22
RudiB.05/09/21
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie