View Single Post
Old 08-17-2006, 04:46 PM   #29 (permalink)
zorlac
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,616
zorlac is on a distinguished road
Default

Ah... WBK, its the "WindowFromPoint" call I hadnt spotted... that might be very helpful. I`ll have a play tonight.... if you just see a large WOOHOO later, you know its working


Quote:
Originally Posted by Wild.Bill.Kelso
Code:
    SetCapture Me.hWnd
    GetCursorPos Pt
    mWnd = WindowFromPoint(Pt.x, Pt.y)
    If Button = 1 Then
        'BEGIN DRAG:
        Call ReleaseCapture
        lngReturnValue = SendMessage(mWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&)
        ReleaseCapture
        SetCapture Me.hWnd
        ...
__________________


(Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy)
zorlac is offline   Reply With Quote