[Universal Method] Mobile No title Bar Window

zhaozj2021-02-16  78

[Universal Method] Mobile No title bar window is simple, two sentences can be implemented, can be universal. . .

Want to move the window window, not as troublesome like it is imagined ^ _ ^,

Write the following code in the mousedown event of the control with the mousedown event:

Releasecapture;

SendMessage (handle, wm_nclbuttondown, htcaption, 0);

Everything is OK, now you can press the mouse to drag ,,,,

The above is the implementation method in Delphi, the same other languages ​​(because it is called A

Pi).

转载请注明原文地址:https://www.9cbs.com/read-12748.html

New Post(0)