Nitin Garg
04-25-2002, 06:09 AM
Hi guys...
Can you please tell me how i can hide the title bar of mdi form.
Can you please tell me how i can hide the title bar of mdi form.
Hiding the TitleBar of a Mdi FormNitin Garg 04-25-2002, 06:09 AM Hi guys... Can you please tell me how i can hide the title bar of mdi form. Garrett Sever 04-25-2002, 06:37 AM Main application titlebar or child window titlebar? And for what purpose? Huby 04-25-2002, 07:02 AM set the .BorderStyle property to 0 Squirm 04-25-2002, 09:34 AM Good old GetWindowLong and SetWindowLong ;) Option Explicit Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Const WS_CAPTION = &HC00000 Const GWL_STYLE = (-16) 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 End Sub Nitin Garg 04-25-2002, 10:12 PM Thanks a lot.....Squirm.....for this wonderful and short way. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum