43#define LB_ARRAY_GRANULARITY 16
46#define LB_SCROLL_TIMEOUT 50
52#define LBS_DISPLAYCHANGED 0x80000000
100#define IS_OWNERDRAW(descr) \
101 ((descr)->style & (LBS_OWNERDRAWFIXED | LBS_OWNERDRAWVARIABLE))
103#define HAS_STRINGS(descr) \
104 (!IS_OWNERDRAW(descr) || ((descr)->style & LBS_HASSTRINGS))
107#define IS_MULTISELECT(descr) \
108 ((descr)->style & (LBS_MULTIPLESEL|LBS_EXTENDEDSEL) && \
109 !((descr)->style & LBS_NOSEL))
111#define SEND_NOTIFICATION(descr,code) \
112 (SendMessageW( (descr)->owner, WM_COMMAND, \
113 MAKEWPARAM( GetWindowLongPtrW((descr->self),GWLP_ID), (code)), (LPARAM)(descr->self) ))
115#define ISWIN31 (LOWORD(GetVersion()) == 0x0a03)
150 if (items_size >
descr->items_size ||
164 descr->items_size = items_size;
231 if (!
descr->u.items)
return;
233 if (index < descr->nb_items)
242 if (!
descr->u.items)
return;
244 if (index < descr->nb_items)
257 for (
i =
descr->top_item,
height = 0; i < descr->nb_items;
i++)
261 if (
i ==
descr->top_item)
return 1;
262 else return i -
descr->top_item;
280 if (max < descr->nb_items - 1)
max++;
390 TRACE(
"setting top item %d, scroll %d\n",
index, scroll);
468 if(
descr->item_height != 0)
469 remaining =
descr->height %
descr->item_height;
472 if ((
descr->height >
descr->item_height) && remaining)
474 TRACE(
"[%p]: changing height %d -> %d\n",
525 if (index < descr->top_item)
562 if (!
descr->nb_items)
return -1;
568 while (index < descr->nb_items)
585 if (
y >=
descr->item_height *
descr->page_size)
return -1;
594 if (
index < 0)
return 0;
611 if (index < descr->nb_items)
633 ERR(
"called with an out of bounds index %d(%d) in owner draw, Not good.\n",
index,
descr->nb_items);
658 TRACE(
"[%p]: drawitem %d (%s) action=%02x state=%02x rect=%s\n",
680 TRACE(
"[%p]: painting %d (%s) action=%02x rect=%s\n",
720 descr->style &= ~LBS_NOREDRAW;
729 descr->style &= ~LBS_DISPLAYCHANGED;
747 HBRUSH
hbrush, oldBrush = 0;
784 if (
descr->focus_item == -1)
return;
785 if (!
descr->caret_on || !
descr->in_focus)
return;
808 return descr->items_size;
837 for (
i = 0;
i <
descr->nb_tabs;
i++)
873 WARN(
"got an invalid buffer (Delphi bug?)\n" );
939 return exact ? -1 :
min;
963 if (*
str !=
'[')
res = -1;
964 else if (
p[1] ==
'-')
971 if (
str[1] ==
'-')
res = 1;
1025 if (item_str[0] ==
'[')
1087 RECT focusRect = {-1, -1, -1, -1};
1089 HBRUSH
hbrush, oldBrush = 0;
1096 else if (
descr->horz_pos)
1108 if (!
descr->nb_items && (
descr->focus_item != -1) &&
descr->caret_on &&
1122 for (
i =
descr->top_item; i < descr->nb_items;
i++)
1130 if (
i ==
descr->focus_item)
1155 col_pos =
descr->page_size - 1;
1166 if (focusRect.
top != focusRect.
bottom &&
1198 HRGN cliprgn = region;
1213 r.right - cxEdge,
r.bottom - cyEdge);
1214 if (region != (HRGN)1)
1289 else return descr->item_height;
1339 if (!(diff =
descr->horz_pos -
pos))
return;
1390 TRACE(
"[%p]: new column width = %d\n",
descr->self, column_width);
1395 descr->column_width = column_width;
1412 const char *alphabet =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
1419 ERR(
"unable to get DC.\n" );
1427 descr->avg_char_width = (sz.
cx / 26 + 1) / 2;
1443 TRACE(
"current top item %d, index %d, fully %d\n",
descr->top_item,
index, fully);
1445 if (index <= descr->top_item)
top =
index;
1449 if (!fully) cols +=
descr->column_width - 1;
1450 if (cols >=
descr->column_width) cols /=
descr->column_width;
1452 if (index < descr->top_item + (
descr->page_size * cols))
return;
1463 if (index < descr->top_item +
descr->page_size)
return;
1550 TRACE(
"cur_sel=%d index=%d notify=%s\n",
1611 if (
descr->anchor_item != -1)
1667 TRACE(
"[%p]: measure item %d (%s) = %d\n",
1678 if (
descr->nb_items == 1)
1683 descr->selected_item++;
1688 if (index <= descr->selected_item)
1690 descr->selected_item++;
1691 descr->focus_item = oldfocus;
1725 TRACE(
"[%p]: added item %d %s\n",
1771 if (
descr->nb_items == 1)
1795 descr->selected_item = -1;
1796 else if (index < descr->selected_item)
1798 descr->selected_item--;
1807 if (
descr->focus_item < 0)
descr->focus_item = 0;
1823 descr->nb_items = 0;
1824 descr->top_item = 0;
1825 descr->selected_item = -1;
1826 descr->focus_item = 0;
1827 descr->anchor_item = -1;
1828 descr->items_size = 0;
1849 if (
count < orig_num)
1853 descr->selected_item = -1;
1899 static const WCHAR bracketW[] = {
']',0 };
1904 if (!long_names &&
entry.cAlternateFileName[0])
1912#define ATTRIBS (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | \
1913 FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_ARCHIVE)
1919 if (!long_names &&
entry.cAlternateFileName[0])
1928 if (
ret <= maxinsert) maxinsert++;
else maxinsert =
ret;
2049 else if (
descr->horz_extent)
2090 INT pulScrollLines = 3;
2095 if ((delta < 0 && descr->wheel_remain < 0) ||
2096 (delta > 0 &&
descr->wheel_remain > 0))
2097 descr->wheel_remain += delta;
2099 descr->wheel_remain = delta;
2101 if (
descr->wheel_remain && pulScrollLines)
2106 pulScrollLines =
min(
descr->width /
descr->column_width, pulScrollLines);
2107 pulScrollLines =
max(1, pulScrollLines);
2110 cLineScroll *=
descr->page_size;
2114 pulScrollLines =
min(
descr->page_size, pulScrollLines);
2130 TRACE(
"[%p]: lbuttondown %d,%d item %d, focus item %d\n",
2133 if (!
descr->caret_on && (
descr->in_focus))
return 0;
2135 if (!
descr->in_focus)
2141 if (
index == -1)
return 0;
2233 RECT clientRect, screenRect;
2241 if(
PtInRect(&clientRect, mousePos))
2246 descr->lphc->droppedIndex =
descr->nb_items ?
descr->selected_item : -1;
2254 POINT screenMousePos;
2255 HWND hWndOldCapture;
2258 screenMousePos = mousePos;
2264 if(!
PtInRect(&screenRect, screenMousePos))
2279 if (
PtInRect( &clientRect, mousePos ))
2286 if (
PtInRect( &clientRect, mousePos ))
2292 if(nHitTestType != 0)
2295 MAKELONG(screenMousePos.
x, screenMousePos.
y));
2299 if(hWndOldCapture != 0)
2314 if (
descr->captured)
2387 if (!
descr->captured)
return;
2392 else if (
y >=
descr->item_height *
descr->page_size)
2400 else if (
x >=
descr->width)
2434 bForceSelection =
FALSE;
2441 if (caret == -2)
return 0;
2443 if (caret == -1)
switch(
key)
2448 bForceSelection =
FALSE;
2450 caret =
descr->focus_item -
descr->page_size;
2455 caret =
descr->focus_item - 1;
2456 if (caret < 0) caret = 0;
2461 bForceSelection =
FALSE;
2467 caret =
descr->focus_item + 1;
2468 if (caret >=
descr->nb_items) caret =
descr->nb_items - 1;
2479 if (caret < 0) caret = 0;
2489 if (caret >=
descr->nb_items) caret =
descr->nb_items - 1;
2495 caret =
descr->nb_items - 1;
2507 bForceSelection =
FALSE;
2509 if (bForceSelection)
2510 caret =
descr->focus_item;
2516 descr->anchor_item = caret;
2520 descr->selected_item = caret;
2553 if (caret == -2)
return 0;
2588 descr->items_size = 0;
2589 descr->nb_items = 0;
2590 descr->top_item = 0;
2591 descr->selected_item = -1;
2592 descr->focus_item = 0;
2593 descr->anchor_item = -1;
2594 descr->item_height = 1;
2595 descr->page_size = 1;
2596 descr->column_width = 150;
2597 descr->horz_extent = 0;
2598 descr->horz_pos = 0;
2601 descr->wheel_remain = 0;
2602 descr->caret_on = !lphc;
2624 descr->style &= ~LBS_NODATA;
2629 descr->style &= ~LBS_OWNERDRAWVARIABLE;
2646 descr->item_height = mis.itemHeight ? mis.itemHeight : 1;
2727 return descr->nb_items;
2753 return descr->nb_items;
2768 if (
descr->nb_items == 0)
2771 return descr->selected_item;
2772 if (
descr->selected_item != -1)
2773 return descr->selected_item;
2774 return descr->focus_item;
2778 return descr->top_item;
2797 if(
descr->nb_items == 0)
2834 return descr->focus_item;
2911 return descr->horz_extent;
2917 return descr->anchor_item;
2932 return descr->locale;
2954 if (
descr->caret_on)
2957 if ((
descr->focus_item != -1) && (
descr->in_focus))
2962 if (!
descr->caret_on)
2965 if ((
descr->focus_item != -1) && (
descr->in_focus))
2969 case LB_GETLISTBOXINFO:
2970 return descr->page_size;
3012 if (
descr->focus_item != -1)
3019 descr->wheel_remain = 0;
3020 if ((
descr->focus_item != -1) &&
descr->caret_on)
3067 descr->captured = captured;
3138 if( lphc )
return 0;
3150 case WM_THEMECHANGED:
3158 WARN(
"[%p]: unknown msg %04x wp %08lx lp %08lx\n",
3169 memset(&wndClass, 0,
sizeof(wndClass));
3182 static const WCHAR combolboxW[] = {
'C',
'o',
'm',
'b',
'o',
'L',
'B',
'o',
'x',0};
3185 memset(&wndClass, 0,
sizeof(wndClass));
3197void LISTBOX_Unregister(
void)
3202void COMBOLBOX_Unregister(
void)
3204 static const WCHAR combolboxW[] = {
'C',
'o',
'm',
'b',
'o',
'L',
'B',
'o',
'x',0};
static void * heap_realloc(void *mem, size_t len)
static const char * wine_dbgstr_rect(const RECT *prc)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static char selected[MAX_PATH+1]
BOOL COMBO_FlipListbox(LPHEADCOMBO lphc, BOOL ok, BOOL bRedrawButton)
static LRESULT LISTBOX_RemoveItem(LB_DESCR *descr, INT index)
#define SEND_NOTIFICATION(descr, code)
static LRESULT LISTBOX_InsertString(LB_DESCR *descr, INT index, LPCWSTR str)
static void LISTBOX_DrawFocusRect(LB_DESCR *descr, BOOL on)
static void LISTBOX_SetHorizontalPos(LB_DESCR *descr, INT pos)
static LRESULT LISTBOX_HandleKeyDown(LB_DESCR *descr, DWORD key)
static LRESULT LISTBOX_SetCaretIndex(LB_DESCR *descr, INT index, BOOL fully_visible)
static BOOL LISTBOX_SetTabStops(LB_DESCR *descr, INT count, LPINT tabs)
static LRESULT LISTBOX_HandleLButtonUp(LB_DESCR *descr)
static void remove_item_data(LB_DESCR *descr, UINT index)
static void LISTBOX_DeleteItem(LB_DESCR *descr, INT index)
static void LISTBOX_InvalidateItems(LB_DESCR *descr, INT index)
static LRESULT LISTBOX_GetSelCount(const LB_DESCR *descr)
static void LISTBOX_SetRedraw(LB_DESCR *descr, BOOL on)
static void LISTBOX_InvalidateItemRect(LB_DESCR *descr, INT index)
static LRESULT LISTBOX_GetText(LB_DESCR *descr, INT index, LPWSTR buffer, BOOL unicode)
static LRESULT LISTBOX_InitStorage(LB_DESCR *descr, INT nb_items)
static void LISTBOX_MakeItemVisible(LB_DESCR *descr, INT index, BOOL fully)
static INT LISTBOX_FindFileStrPos(LB_DESCR *descr, LPCWSTR str)
static LRESULT LISTBOX_SetSelection(LB_DESCR *descr, INT index, BOOL on, BOOL send_notify)
static LRESULT LISTBOX_HandleLButtonDownCombo(LB_DESCR *descr, UINT msg, DWORD keys, INT x, INT y)
static LRESULT LISTBOX_HandleVScroll(LB_DESCR *descr, WORD scrollReq, WORD pos)
#define IS_MULTISELECT(descr)
static void LISTBOX_ResetContent(LB_DESCR *descr)
static LRESULT LISTBOX_HandleTimer(LB_DESCR *descr, INT index, TIMER_DIRECTION dir)
#define HAS_STRINGS(descr)
static LRESULT LISTBOX_HandleMouseWheel(LB_DESCR *descr, SHORT delta)
static UINT get_item_height(const LB_DESCR *descr, UINT index)
static LRESULT LISTBOX_SetHorizontalExtent(LB_DESCR *descr, INT extent)
static void set_item_height(LB_DESCR *descr, UINT index, UINT height)
static void set_item_selected_state(LB_DESCR *descr, UINT index, BOOL state)
static LRESULT LISTBOX_InsertItem(LB_DESCR *descr, INT index, LPWSTR str, ULONG_PTR data)
static void LISTBOX_MoveCaret(LB_DESCR *descr, INT index, BOOL fully_visible)
static LRESULT LISTBOX_GetSelItems(const LB_DESCR *descr, INT max, LPINT array)
static BOOL is_item_selected(const LB_DESCR *descr, UINT index)
static LRESULT LISTBOX_Paint(LB_DESCR *descr, HDC hdc)
static void LISTBOX_UpdateScroll(LB_DESCR *descr)
static TIMER_DIRECTION LISTBOX_Timer
static LRESULT LISTBOX_SetTopItem(LB_DESCR *descr, INT index, BOOL scroll)
static INT LISTBOX_SetFont(LB_DESCR *descr, HFONT font)
static LRESULT LISTBOX_SetColumnWidth(LB_DESCR *descr, INT column_width)
static LRESULT LISTBOX_HandleHScroll(LB_DESCR *descr, WORD scrollReq, WORD pos)
static ULONG_PTR get_item_data(const LB_DESCR *descr, UINT index)
static LRESULT LISTBOX_SelectItemRange(LB_DESCR *descr, INT first, INT last, BOOL on)
static void set_item_data(LB_DESCR *descr, UINT index, ULONG_PTR data)
void LISTBOX_Register(void)
static void LISTBOX_RepaintItem(LB_DESCR *descr, INT index, UINT action)
static LRESULT LISTBOX_GetItemRect(const LB_DESCR *descr, INT index, RECT *rect)
static void set_item_string(const LB_DESCR *descr, UINT index, WCHAR *string)
static INT LISTBOX_FindString(LB_DESCR *descr, INT start, LPCWSTR str, BOOL exact)
static void insert_item_data(LB_DESCR *descr, UINT index)
static BOOL LISTBOX_Destroy(LB_DESCR *descr)
#define LB_ARRAY_GRANULARITY
static void LISTBOX_NCPaint(LB_DESCR *descr, HRGN region)
void COMBOLBOX_Register(void)
static LRESULT LISTBOX_HandleSystemTimer(LB_DESCR *descr)
static BOOL resize_storage(LB_DESCR *descr, UINT items_size)
static LRESULT LISTBOX_Directory(LB_DESCR *descr, UINT attrib, LPCWSTR filespec, BOOL long_names)
static void LISTBOX_HandleMouseMove(LB_DESCR *descr, INT x, INT y)
static LRESULT LISTBOX_GetItemHeight(const LB_DESCR *descr, INT index)
#define LB_SCROLL_TIMEOUT
static INT LISTBOX_FindStringPos(LB_DESCR *descr, LPCWSTR str, BOOL exact)
static void LISTBOX_PaintItem(LB_DESCR *descr, HDC hdc, const RECT *rect, INT index, UINT action, BOOL ignoreFocus)
#define IS_OWNERDRAW(descr)
static INT LISTBOX_GetItemFromPoint(const LB_DESCR *descr, INT x, INT y)
static INT LISTBOX_lstrcmpiW(LCID lcid, LPCWSTR str1, LPCWSTR str2)
#define LBS_DISPLAYCHANGED
static size_t get_sizeof_item(const LB_DESCR *descr)
static LRESULT LISTBOX_HandleChar(LB_DESCR *descr, WCHAR charW)
static void LISTBOX_UpdatePage(LB_DESCR *descr)
static LRESULT LISTBOX_SetItemHeight(LB_DESCR *descr, INT index, INT height, BOOL repaint)
static void LISTBOX_UpdateSize(LB_DESCR *descr)
static WCHAR * get_item_string(const LB_DESCR *descr, UINT index)
static INT LISTBOX_GetCurrentPageSize(const LB_DESCR *descr)
static LRESULT LISTBOX_SetCount(LB_DESCR *descr, UINT count)
static INT LISTBOX_GetMaxTopIndex(const LB_DESCR *descr)
static LRESULT CALLBACK LISTBOX_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
static BOOL LISTBOX_Create(HWND hwnd, LPHEADCOMBO lphc)
static LRESULT LISTBOX_HandleLButtonDown(LB_DESCR *descr, DWORD keys, INT x, INT y)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define __EXCEPT_PAGE_FAULT
UINT WINAPI GetDriveTypeW(IN LPCWSTR lpRootPathName)
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
INT WINAPI CompareStringW(LCID lcid, DWORD flags, LPCWSTR str1, INT len1, LPCWSTR str2, INT len2)
BOOL WINAPI IsValidLocale(LCID lcid, DWORD flags)
LCID WINAPI GetUserDefaultLCID(void)
LPWSTR WINAPI CharLowerW(WCHAR *str)
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iStateId)
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR pszClassList)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei count
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble top
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
#define ERROR_FILE_NOT_FOUND
static const WCHAR textW[]
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const WCHAR dotW[]
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
INT WINAPI MulDiv(INT nNumber, INT nNumerator, INT nDenominator)
#define FILE_ATTRIBUTE_DIRECTORY
#define LBS_DISABLENOSCROLL
#define LBS_OWNERDRAWFIXED
#define LBS_OWNERDRAWVARIABLE
#define LBS_NOINTEGRALHEIGHT
#define LBS_WANTKEYBOARDINPUT
static const WCHAR empty_stringW[]
static const WCHAR combolboxW[]
#define DRIVE_NO_ROOT_DIR
DWORD WINAPI GetLastError(void)
#define ERROR_INVALID_INDEX
#define ERROR_LB_WITHOUT_TABSTOPS
#define ERROR_NO_MORE_FILES
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
HRGN WINAPI CreateRectRgn(_In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI SetWindowOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
int WINAPI ExcludeClipRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
int WINAPI CombineRgn(_In_opt_ HRGN hrgnDest, _In_opt_ HRGN hrgnSrc1, _In_opt_ HRGN hrgnSrc2, _In_ int fnCombineMode)
BOOL WINAPI ExtTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_ UINT options, _In_opt_ const RECT *lprect, _In_reads_opt_(c) LPCWSTR lpString, _In_ UINT c, _In_reads_opt_(c) const INT *lpDx)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
int WINAPI SelectClipRgn(_In_ HDC, _In_opt_ HRGN)
BOOL WINAPI GetTextExtentPointA(_In_ HDC hdc, _In_reads_(c) LPCSTR lpString, _In_ int c, _Out_ LPSIZE lpsz)
#define CSTR_GREATER_THAN
HWND WINAPI SetCapture(_In_ HWND hWnd)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI IsWindow(_In_opt_ HWND)
#define LB_FINDSTRINGEXACT
#define GetWindowLongPtrW
HDC WINAPI GetWindowDC(_In_opt_ HWND)
#define LB_SETHORIZONTALEXTENT
BOOL WINAPI ReleaseCapture(void)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define SW_SCROLLCHILDREN
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
#define LB_GETANCHORINDEX
HDC WINAPI GetDCEx(_In_opt_ HWND, _In_opt_ HRGN, _In_ DWORD)
HWND WINAPI GetCapture(void)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define LB_SETCOLUMNWIDTH
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
#define LB_SELITEMRANGEEX
#define LB_SETANCHORINDEX
BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT)
UINT_PTR WINAPI SetSystemTimer(HWND, UINT_PTR, UINT, TIMERPROC)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI KillSystemTimer(HWND, UINT_PTR)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
#define LB_GETHORIZONTALEXTENT
#define SIF_DISABLENOSCROLL
#define COLOR_HIGHLIGHTTEXT
BOOL WINAPI DragDetect(_In_ HWND, _In_ POINT)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
BOOL WINAPI SetRectEmpty(_Out_ LPRECT)
BOOL WINAPI IsWindowEnabled(_In_ HWND)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define WM_CTLCOLORLISTBOX
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)
BOOL WINAPI DrawFocusRect(_In_ HDC, _In_ LPCRECT)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define SetWindowLongPtrW
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
BOOL WINAPI IsWindowVisible(_In_ HWND)
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
SHORT WINAPI GetKeyState(_In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
LONG WINAPI TabbedTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_reads_(chCount) LPCWSTR lpString, _In_ int chCount, _In_ int nTabPositions, _In_reads_opt_(nTabPositions) CONST INT *lpnTabStopPositions, _In_ int nTabOrigin)