[comp.windows.ms.programmer] Movable Controls

hans@pine.circa.ufl.edu (Hans van Oostrom) (01/19/91)

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           <<<