comctl32: Introduce ComboBox control.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-02-13 10:56:36 +03:00 committed by Alexandre Julliard
parent 0a7d627ca3
commit c9e98034b3
6 changed files with 2121 additions and 1 deletions

View File

@ -7,6 +7,7 @@ DELAYIMPORTS = winmm uxtheme
C_SRCS = \
animate.c \
button.c \
combo.c \
comboex.c \
comctl32undoc.c \
commctrl.c \

2116
dlls/comctl32/combo.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -178,6 +178,7 @@ HRGN set_control_clipping(HDC hdc, const RECT *rect) DECLSPEC_HIDDEN;
extern void ANIMATE_Register(void) DECLSPEC_HIDDEN;
extern void ANIMATE_Unregister(void) DECLSPEC_HIDDEN;
extern void BUTTON_Register(void) DECLSPEC_HIDDEN;
extern void COMBO_Register(void) DECLSPEC_HIDDEN;
extern void COMBOEX_Register(void) DECLSPEC_HIDDEN;
extern void COMBOEX_Unregister(void) DECLSPEC_HIDDEN;
extern void DATETIME_Register(void) DECLSPEC_HIDDEN;

View File

@ -99,6 +99,7 @@ static void unregister_versioned_classes(void)
static const char *classes[] =
{
VERSION WC_BUTTONA,
VERSION WC_COMBOBOXA,
VERSION WC_EDITA,
VERSION WC_STATICA,
};
@ -170,6 +171,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
UPDOWN_Register ();
BUTTON_Register ();
COMBO_Register ();
EDIT_Register ();
STATIC_Register ();

View File

@ -346,6 +346,7 @@ static void check_class( const char *name, int must_exist, UINT style, UINT igno
if (GetClassInfoA( 0, name, &wc ))
{
todo_wine_if(strcmp(name, "Button") &&
strcmp(name, "ComboBox") &&
strcmp(name, "Edit") &&
strcmp(name, "Static"))
ok( !(~wc.style & style & ~ignore), "System class %s is missing bits %x (%08x/%08x)\n",

View File

@ -166,7 +166,6 @@ static BOOL is_builtin_class( const WCHAR *name )
{
static const WCHAR classesW[][20] =
{
{'C','o','m','b','o','B','o','x',0},
{'C','o','m','b','o','L','B','o','x',0},
{'I','M','E',0},
{'L','i','s','t','B','o','x',0},