如何隐藏窗口的TITLE标题?(原创)
发表于:2007-07-02来源:作者:点击数:
标签:
如何隐藏窗口的TITLE标题? 问题描述: 如何隐藏窗口的TITLE标题? 解决方案: 1、把下列声明加到GLOBAL EXTERNAL FUNCTIONS: Function ulong SetWindowPos(ulong hwnd,ulong hWndInsertAfter,ulong x,ulong y,ulong cx,ulong cy,ulong wFlags) LIBRARY "us
如何隐藏窗口的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)
原文转自:http://www.ltesting.net