#711 closed Bug (No Bug)
Combobox functions does not work properly or even at all, on Windows 2000 & NT 4.0
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.1 | Severity: | None |
| Keywords: | Cc: |
Description
Hello,
I'll refer to two different combobox functions which malfunction on Windows 2000 (sp4 2195) and NT 4 (sp6a).
First one is: _GUICtrlComboBoxEx_Create
and probably derivatives (i mean same type of functions). When compiled to run on the above mentioned OSes, the script/exe throws an error on start "Error: _WinAPI_CreateWindowEx: Cannot find window class."
This *does not* happen on Windows XP or 2003.
I found it through my own scripts, but you can reproduce it if you compile the example script under the _GUICtrlComboBoxEx_Create section of AutoIT's .chm help file. and run in on the reported OSes.
Second one is: (the regular) GUICtrlCreateCombo.
Again problem is on Windows 2000 (2195). I was not able to test on NT 4.0 . Here follows example code:
#include <GuiConstantsEx.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $msg, $hGUI, $combobox
$hGUI = GUICreate("Title", 250, 173)
GUICtrlCreateLabel("Label that bugs the app on Win2k:", 2, 3)
$combobox = GUICtrlCreateCombo("1", 2, 20, 244)
GUICtrlSetData($combobox, "2|3|4|5")
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
EndFunc
What it does is that the combobox does not drop down at all. If I will comment the line to create label (;GUICtrlCreateLabel("Label:", 2, 3)), it works as expected on XP/2003 and 2000.
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 17 years ago
Well, I can agree with this explanation, but what does it mean "is not implemented on the OS you are trying to use"? I'm using on standard 2k/NT4 latest updates. I suppose it should be written in docs "Notice: It doesnt work there", but it is not.

For your first issue, it's obvious the ComboBoxEx control is not implemented on the OS you are trying to use. ComboBoxEx is not the same thing as a ComboBox.
As for your second issue, read the documentation, I'll be you find your answer. Try looking at the Remarks section of GUICtrlCreateCombo().
No bugs to see here.