First you can add 4 picture boxes as the window's title bar and Border
Window's surrounding border and title bar can be fabricated with a picture frame
If you don't want others to see the picture frame, you can make the background color of the picture frame the same as the window base
to move the window, you can use:
_ to start the window. Send Message (161, 2, 0)
Change window size, you can use:
_ Launches the window. Send Message (274, 61441, 0) ' You can adjust the border on the left side of the window
_ the Startup window. Send Message (274, 61442, 0) ' You can adjust the border to the right of the window
_ launch window. Send Message (274, 61443, 0 You can adjust the border on the top of the window
to start the window. Send Message (274, 61446, 0) ' You can adjust the border at the bottom of the window
_ launch window. Send messages (274, 61444, 0) ' You can adjust both the top and left borders of the window
_ start window. Send Message (274, 61445, 0) ' The border between the top and right of the window can be adjusted at the same time
_ startup window. Send Message (274, 61447, 0) ' You can adjust both the bottom and left border of the window
_ launch window. Send a Messenger (274, 61448, 0) ' You can adjust the bottom and right border of the window at the same time
Usage:
For example, add a picture frame to the title bar, for example to move a window:
--------------------- ----------
. Sub-Program title bar _ left mouse button is pressed, logical type
. parameter transverse position, integer type
. parameter vertical position, integer type
. parameter function key state, integer type
_ startup window. Send Message (161, 2, 0
--------------------------------
If you want to change the window size, I think you know how to use the above code
If you change the window size, you can use
. Version 2
. subroutine __ Start window _ size changed
Then add the code in the subroutine where the 4 picture frame should be located
Easy language using window messages for borderless adjustment and moving windows