Think you can do better??? Moving a Borderless Window
#7
(11-25-2022, 09:05 PM)Kernelpanic Wrote:
(11-25-2022, 07:10 PM)Pete Wrote: This is a mix of WIN32 API and QB64 code. I would have posted it all in Win API, but I haven't looked into controlling the mouse cursor, only locating it. So what it does is produce a borderless window with a fake blank top strip you can drag around the screen. The limits placed on the cursor, to keep it from racing away from the window, are a bit choppy. Maybe that could be improved with a different approach. If anyone has a pure Win API example to compare it to, that would be nice.
@Pete - skillfully again from programming, but where's the practical use?  Huh

Can precision play a role with integer numbers?  That's only interesting for floating point numbers, isn't it?

[Image: Petes-Top-Fenster2022-11-25.jpg]

Great question. Say you want to have a custom title bar instead of the Windows title bar wit its predetermined functions like close, restore, minimize, etc. This allows a user to make their custom title bar do whatever they want, while maintaining the best Windows feature, the ability to drag the window around with the mouse.

Pete
Reply


Messages In This Thread
RE: Think you can do better??? Moving a Borderless Window - by Pete - 11-26-2022, 12:09 AM



Users browsing this thread: 1 Guest(s)