如何隐藏窗口的title标题?
问题描述:
如何隐藏窗口的title标题?
解决方案:
1、把下列声明加到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、把下列代码加到w_frame窗口(即mdi窗口)的open事件:
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)