🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1092

Movable Controls

#1092
From: Hans van Oostrom
Date: Fri, 18 Jan 1991 16:25
17 lines
1357 bytes
Is there an easy way to make a custom control (or any window for that 
matter) that can be moved.  I would like to use documented functions, 
but if undocumented makes life a lot easier, that's fine too.  I tried 
to do something as capturing mousemove messages of that window, 
testing on MK_LBUTTON and moving the window with MoveWindow.  This 
gets pretty complex because of different coordinates etc.  I was 
wondering if anybody knows an easier way.  Of course all this work has 
been done for the title bar, but how do I access that code?

You can e-mail code examples to me, and post solutions to the net.

Thanks...

Hans van Oostrom
PO Box J-254, JHMHC                 hans@ufpine                (BITNET)
Gainesville, FL  32601, USA         hans@pine.circa.ufl.edu    (INTERNET)
>>>          Hoe ver je ook gaat, overal zie je landgenoten           <<<
Technical Details
Message-ID: <26380@uflorida.cis.ufl.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!rex!uflorida!pine.circa.ufl.edu!hans

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!rex!uflorida!pine.circa.ufl.edu!hans
From: hans@pine.circa.ufl.edu (Hans van Oostrom)
Newsgroups: comp.windows.ms.programmer
Subject: Movable Controls
Message-ID: <26380@uflorida.cis.ufl.EDU>
Date: 18 Jan 91 16:25:03 GMT
Sender: news@uflorida.cis.ufl.EDU
Reply-To: hans@pine.circa.ufl.edu
Organization: University of Florida - Dept. of Anesthesiology
Lines: 17
News-Software: VAX/VMS VNEWS 1.3-4