English
Source / code snippets

Window Getcursorpos Mainwindow mouse Movebymouse move

 

CompileMarkSeparation
cls
userMessages 16,513//wm_close,wm_lButtonDown

while 1

    WaitInput

    select %uMessage

        caseof 16 : break//wm_close

        caseof 513 : hWnd.movebyMouse()//wm_lButtonDown

    endSelect

wend

end

proc hWnd.moveByMouse

    declare mpos#
    dim mpos#,8
    external("user32","GetCursorPos]",mpos#)
    var wix&=%winLeft-long(mpos#,0)
    var wiy&=%winTop-long(mpos#,4)

    while iskey(1)

        external("user32","GetCursorPos",mpos#)
        setWindowPos %hWnd=(long(mpos#,0)+wix&),(long(mpos#,4)+wiy&) - (%winRight-%winLeft),(%winBottom-%winTop);0

    wend

    dispose mpos#

endProc


something plainer/ kürzer with xpse:
CompileMarkSeparation
 
12/05/10  
 



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

2.722 Views

Untitledvor 0 min.
ByteAttack12/27/23
H.Brill09/20/23
RudiB.04/05/20
Peter Max Müller11/02/17
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


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