|
Private Sub UserForm_Initialize()
Dim IStyle As LongLong, hWnd As LongLong
'''000000000000000000000000000000
hWnd = FindWindow(vbNullString, Me.Caption)
SetWindowPos hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
'''0000000000000000000000000000
ListBox1.ColumnCount = 1
'******去除窗体标题栏******
IStyle = GetWindowlonglong(hWnd, GWL_STYLE)
IStyle = IStyle And Not WS_CAPTION
SetWindowLong hWnd, GWL_STYLE, IStyle
DrawMenuBar hWnd
' ******去除窗体四周的边框******
IStyle = GetWindowLong(hWnd, GWL_EXSTYLE) And Not WS_EX_DLGMODALFRAME
SetWindowLong hWnd, GWL_EXSTYLE, IStyle
endsub
红色标示的两句在32位下正常使用,为什么在64位下就提示错误呢?请问这两句是什么意思,怎么改才能在64位下使用?请高手直接帮忙解答,谢谢谢谢!
|
|