Function Reference

_GUICtrlTab_GetUnicodeFormat

コントロールのUnicode文字フォーマットフラグを取得します。

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

 

パラメータ

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

 

返し値

True: コントロールはUnicode文字を使用しています
False: コントロールはANSI文字を使用しています

 

注意

なし。

 

関連

_GUICtrlTab_SetUnicodeFormat

 


#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 $bFormat, $hTab

    ; GUIを作成
    GUICreate("Tab Control Get Unicode Format", 400, 300)
    $hTab = GUICtrlCreateTab(2, 2, 396, 296)
    GUISetState()

    ; タブを追加
    _GUICtrlTab_InsertItem($hTab, 0, "Tab 1")
    _GUICtrlTab_InsertItem($hTab, 1, "Tab 2")
    _GUICtrlTab_InsertItem($hTab, 2, "Tab 3")
   
    ; Unicode形式を取得/設定
    $bFormat = _GUICtrlTab_GetUnicodeFormat($hTab)
    MsgBox(4160, "Information", "Unicode format: " & $bFormat)
    _GUICtrlTab_SetUnicodeFormat($hTab, Not $bFormat)
    MsgBox(4160, "Information", "Unicode format: " & _GUICtrlTab_GetUnicodeFormat($hTab))

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