Function Reference

_GUICtrlTab_GetExtendedStyle

現在使用されている拡張スタイルを取得します。

#Include <GuiTab.au3>
_GUICtrlTab_GetExtendedStyle($hWnd)

 

パラメータ

$hWnd コントロールのハンドル

 

返し値

成功: 現在使用されている拡張スタイル
        $TCS_EX_FLATSEPARATORS - コントロールはタブアイテムの間にセパレータを描画します
        $TCS_EX_REGISTERDROP - コントロールはオブジェクトがタブアイテム上にドラッグされた際に
        ドロップターゲットオブジェクトをリクエストするための$TCN_GETOBJECT通知メッセージを発生します

 

注意

なし。

 

関連

_GUICtrlTab_SetExtendedStyle

 


#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiConstantsEx.au3>
#include <GuiTab.au3>

Opt('MustDeclareVars', 1)

$Debug_TAB = False ; 関数に渡されるClassNameを調べる。動作を確認するにはTrueを設定し、他のコントロールのハンドルを使用

_Main()

Func _Main()
    Local $hTab

    ; GUIを作成
    GUICreate("Tab Control Get Extended Style", 400, 300)
    $hTab = GUICtrlCreateTab(2, 2, 396, 296, BitOR($TCS_BUTTONS, $TCS_FLATBUTTONS))
    GUISetState()

    ; タブを追加
    _GUICtrlTab_InsertItem($hTab, 0, "Tab 1")
    _GUICtrlTab_InsertItem($hTab, 1, "Tab 2")
    _GUICtrlTab_InsertItem($hTab, 2, "Tab 3")
   
    ; 拡張スタイルを取得/設定
    _GUICtrlTab_SetExtendedStyle($hTab, $TCS_EX_FLATSEPARATORS)
    MsgBox(4160, "Information", "Extended styles: 0x" & Hex(_GUICtrlTab_GetExtendedStyle($hTab)))

    ; ユーザーが終了するまでループ
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main