skullb
Sep 11th, 2000, 05:16 PM
I`m trying to make a fullscreen form with no caption ,border etc ... everythings fine until I try to get rid of the border which originally is borderstyle=2(resizable)
I`m using ws_thickframe but it kills the resizing but keeps the border .... how do I get rid of that border ??
Private Sub max_MouseUp(Button As Integer, Shift As Integer, x As Single, _
Y As Single)
max.Picture = LoadPicture(PicDir & "max1.bmp")
'maxed = True
cx = GetSystemMetrics(SM_CXSCREEN)
cy = GetSystemMetrics(SM_CYSCREEN)
' Call API to set new size of window.
'retval = SetWindowPos(Me.hwnd, HWND_TOP, 0, 0, cx, cy, SWP_SHOWWINDOW)
WSstyle = GetWindowLong(Me.hwnd, GWL_STYLE)
styleOld = WSstyle
WSstyle = WSstyle Xor WS_THICKFRAME
WSstyle = WSstyle Xor WS_BORDER
SetWindowLong Me.hwnd, GWL_STYLE, WSstyle
End Sub
what am I doing wrong?
I`m using ws_thickframe but it kills the resizing but keeps the border .... how do I get rid of that border ??
Private Sub max_MouseUp(Button As Integer, Shift As Integer, x As Single, _
Y As Single)
max.Picture = LoadPicture(PicDir & "max1.bmp")
'maxed = True
cx = GetSystemMetrics(SM_CXSCREEN)
cy = GetSystemMetrics(SM_CYSCREEN)
' Call API to set new size of window.
'retval = SetWindowPos(Me.hwnd, HWND_TOP, 0, 0, cx, cy, SWP_SHOWWINDOW)
WSstyle = GetWindowLong(Me.hwnd, GWL_STYLE)
styleOld = WSstyle
WSstyle = WSstyle Xor WS_THICKFRAME
WSstyle = WSstyle Xor WS_BORDER
SetWindowLong Me.hwnd, GWL_STYLE, WSstyle
End Sub
what am I doing wrong?