Easy language using window messages for borderless resizing and moving windows

Source: Internet
Author: User

 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.