タイトルバー非表示時にタスクバーに表示するには


VB初心者  2002-11-18 14:23:57  No: 76373  IP: [192.*.*.*]

タイトルバーをformのプロパティーで非表示に下のですが、
画面下にあるタスクバーに表示したいのですがどうすれば
いいのですか?
よろしくお願いします。

編集 削除
とろ  2002-11-18 14:54:43  No: 76374  IP: [192.*.*.*]

下のような感じではどうですか?

'---------------------------------------------------------------------
Option Explicit
Private Declare Function GetWindowLong Lib "user32.dll" Alias "GetWindowLongA" ( _
  ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" ( _
  ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function DrawMenuBar Lib "user32.dll" ( _
    ByVal hWnd As Long) As Long
Private Const GWL_STYLE  As Long = (-16)
Private Const WS_CAPTION As Long = &HC00000

Private Sub Form_Load()
  Dim lStyle
  lStyle = GetWindowLong(Me.hWnd, GWL_STYLE)
  SetWindowLong Me.hWnd, GWL_STYLE, lStyle And (Not WS_CAPTION)
  DrawMenuBar Me.hWnd
End Sub

編集 削除
text.k  2002-11-24 04:14:48  No: 76375  IP: [192.*.*.*]

たしか、フォームのプロパティで設定出来たと思います。

編集 削除
旅人  2002-11-26 00:11:43  No: 76376  IP: [192.*.*.*]

タスクバーにアイコンとキャプションを残したままタイトルバーを 外す方法なら
下記にサンプルがあります。

http://www.bcap.co.jp/hanafusa/VBHLP/TitleReleace.htm

編集 削除