How to hide the Title title of the window? (Original)

xiaoxiao2021-03-06  38

How to hide the Title title of the window?

Problem Description:

How to hide the Title title of the window?

solution:

1. Add the following statement to the Global External Functions:

Function Ulong SetWindowPos (Ulong Hwnd, Ulong Hwndinsertafter, Ulong X, Ulong Y, Ulong CX, Ulong Cy, Ulong WFLAGS) library "user32.dll"

Function Ulong SetWindowlonga (Long Hwnd, Long Nindex, Long Dwnewlong) library 'user32.dll'

Function Ulong GetWindowlonga (long hwnd, long nindex) library 'user32.dll'

2, add the following code to the W_Frame window (ie MDI window) OPEN event:

Long DWStyle

DWStyle = getWindowlonga (Handle (this), -16)

DWStyle = DWStyle - 12582912

DWStyle = setWindowlonga (Handle (this), -16, dwstyle

Setwindowpos (Handle (this), -2, 0, 0, 0, 0, 39)

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

New Post(0)