Function Reference

_GUICtrlMonthCal_GetUnicodeFormat

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

#Include <GuiMonthCal.au3>
_GUICtrlMonthCal_GetUnicodeFormat($hWnd)

 

パラメータ

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

 

返し値

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

 

注意

なし。

 

関連

_GUICtrlMonthCal_SetUnicodeFormat

 


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

Opt('MustDeclareVars', 1)

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

Global $iMemo

_Main()

Func _Main()
    Local $hMonthCal

    ; GUIを作成
    GUICreate("Month Calendar Get Unicode Format", 400, 300)
    $hMonthCal = GUICtrlCreateMonthCal("", 4, 4, -1, -1, $WS_BORDER, 0x00000000)
   
    ; メモコントロールを作成
    $iMemo = GUICtrlCreateEdit("", 4, 168, 392, 128, 0)
    GUICtrlSetFont($iMemo, 9, 400, 0, "Courier New")
    GUISetState()

    ; Unicode設定を取得/設定
    _GUICtrlMonthCal_SetUnicodeFormat($hMonthCal, False)
    MemoWrite("Unicode: " & _GUICtrlMonthCal_GetUnicodeFormat($hMonthCal))
    _GUICtrlMonthCal_SetUnicodeFormat($hMonthCal, True)
    MemoWrite("Unicode: " & _GUICtrlMonthCal_GetUnicodeFormat($hMonthCal))

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

; メモ帳にメッセージを書き込む
Func MemoWrite($sMessage)
    GUICtrlSetData($iMemo, $sMessage & @CRLF, 1)
EndFunc   ;==>MemoWrite