[RESOLVED] MDI Title/Caption bar question
I know with a regular form, you can remove the title bar (the blue bar at the top of the form). However, my questions is, can you do the same with an MDI form? The reason I ask is because once my app is completely functional, I am going to be working on the visual design of the forms in the app. Uniformity is very important I believe. Have searched the net and vbf without success. Please advise if you can. Thanks in advance.
Added green "resolved" checkmark - Hack
Re: MDI Title/Caption bar question
Found this in the VB Groups on Google in 3 seconds...
VB Code:
Private Declare Function GetWindowLong Lib "user32" _
Alias "GetWindowLongA" _
(ByVal hwnd As Long, _
ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" _
Alias "SetWindowLongA" _
(ByVal hwnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Private Const GWL_STYLE = -16&
Private Const WS_CAPTION = &HC00000
Private Sub MDIForm_Load()
Dim lStyle As Long
lStyle = GetWindowLong(Me.hwnd, GWL_STYLE)
lStyle = lStyle And (Not WS_CAPTION)
SetWindowLong Me.hwnd, GWL_STYLE, lStyle
Me.Show
End Sub
Re: MDI Title/Caption bar question
thanks for the code. problem with me is, if i search for black, i get white. lol.