comctl32/tests: Run tests again on Win95.
This commit is contained in:
parent
ba644e9c31
commit
47edb3cbab
|
@ -183,6 +183,13 @@ static void test_WM_LBUTTONDOWN(void)
|
||||||
WCHAR buffer[3];
|
WCHAR buffer[3];
|
||||||
static const UINT choices[] = {8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72};
|
static const UINT choices[] = {8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72};
|
||||||
static const WCHAR stringFormat[] = {'%','2','d','\0'};
|
static const WCHAR stringFormat[] = {'%','2','d','\0'};
|
||||||
|
BOOL (WINAPI *pGetComboBoxInfo)(HWND, PCOMBOBOXINFO);
|
||||||
|
|
||||||
|
pGetComboBoxInfo = (void*)GetProcAddress(GetModuleHandleA("user32.dll"), "GetComboBoxInfo");
|
||||||
|
if (!pGetComboBoxInfo){
|
||||||
|
skip("GetComboBoxInfo is not available\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
hComboEx = CreateWindowExA(0, WC_COMBOBOXEXA, NULL,
|
hComboEx = CreateWindowExA(0, WC_COMBOBOXEXA, NULL,
|
||||||
WS_VISIBLE|WS_CHILD|CBS_DROPDOWN, 0, 0, 200, 150,
|
WS_VISIBLE|WS_CHILD|CBS_DROPDOWN, 0, 0, 200, 150,
|
||||||
|
@ -205,7 +212,7 @@ static void test_WM_LBUTTONDOWN(void)
|
||||||
hEdit = (HWND)SendMessage(hComboEx, CBEM_GETEDITCONTROL, 0, 0);
|
hEdit = (HWND)SendMessage(hComboEx, CBEM_GETEDITCONTROL, 0, 0);
|
||||||
|
|
||||||
cbInfo.cbSize = sizeof(COMBOBOXINFO);
|
cbInfo.cbSize = sizeof(COMBOBOXINFO);
|
||||||
result = GetComboBoxInfo(hCombo, &cbInfo);
|
result = pGetComboBoxInfo(hCombo, &cbInfo);
|
||||||
ok(result, "Failed to get combobox info structure. LastError=%d\n",
|
ok(result, "Failed to get combobox info structure. LastError=%d\n",
|
||||||
GetLastError());
|
GetLastError());
|
||||||
hList = cbInfo.hwndList;
|
hList = cbInfo.hwndList;
|
||||||
|
|
Loading…
Reference in New Issue