#include <GUIComboBox.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
$hGUI = GUICreate("Test", 400, 300)
GUICtrlCreateLabel("test", 20, 20, 90, 20)
GUICtrlSetFont(-1, 20, 800, 10, "Tahoma")
GUICtrlSetState(-1, $GUI_HIDE)
$hFont = GUICtrlSendMsg(-1, $WM_GETFONT, 0, 0)
$hCombo = _GUICtrlComboBox_Create($hGUI, "", 50, 20, 240, 20, 3)
_GUICtrlComboBox_AddString($hCombo, "Item 1")
_GUICtrlComboBox_AddString($hCombo, "Item 2")
_SendMessage($hCombo, $WM_SETFONT, $hFont, 1)
GUISetState()
While GUIGetMsg() <> -3
WEnd
|