5 typedef struct tagLISTSTRUCT {
6 MEASUREITEMSTRUCT16 mis;
11 struct tagLISTSTRUCT *lpNext;
12 } LISTSTRUCT, *LPLISTSTRUCT;
28 DWORD dwStyle; /* added for COMBOLBOX style faking */
39 } HEADLIST,*LPHEADLIST;
41 /* shared code between listbox and combo controls */
42 extern void CreateListBoxStruct(HWND hwnd, WORD CtlType, LONG styles, HWND parent);
43 extern void DestroyListBoxStruct(LPHEADLIST lphl);
45 extern void ListBoxSendNotification(LPHEADLIST lphl, WORD code);
47 extern LPLISTSTRUCT ListBoxGetItem(LPHEADLIST lphl, UINT uIndex);
48 extern int ListMaxFirstVisible(LPHEADLIST lphl);
49 extern int ListBoxScrollToFocus(LPHEADLIST lphl);
50 extern int ListBoxAddString(LPHEADLIST lphl, SEGPTR itemData);
51 extern int ListBoxInsertString(LPHEADLIST lphl, UINT uIndex, LPCSTR newstr);
52 extern int ListBoxGetText(LPHEADLIST lphl, UINT uIndex, LPSTR OutStr);
53 extern DWORD ListBoxGetItemData(LPHEADLIST lphl, UINT uIndex);
54 extern int ListBoxSetItemData(LPHEADLIST lphl, UINT uIndex, DWORD ItemData);
55 extern int ListBoxDeleteString(LPHEADLIST lphl, UINT uIndex);
56 extern int ListBoxFindString(LPHEADLIST lphl, UINT nFirst, SEGPTR MatchStr);
57 extern int ListBoxResetContent(LPHEADLIST lphl);
58 extern int ListBoxSetCurSel(LPHEADLIST lphl, WORD wIndex);
59 extern int ListBoxSetSel(LPHEADLIST lphl, WORD wIndex, WORD state);
60 extern int ListBoxGetSel(LPHEADLIST lphl, WORD wIndex);
61 extern LONG ListBoxDirectory(LPHEADLIST lphl, UINT attrib, LPCSTR filespec);
62 extern int ListBoxGetItemRect(LPHEADLIST lphl, WORD wIndex, LPRECT16 rect);
63 extern int ListBoxSetItemHeight(LPHEADLIST lphl, WORD wIndex, long height);
64 extern int ListBoxFindNextMatch(LPHEADLIST lphl, WORD wChar);
66 extern void ListBoxDrawItem (HWND hwnd, LPHEADLIST lphl, HDC hdc,
67 LPLISTSTRUCT lpls, RECT16 *rect, WORD itemAction,
69 extern int ListBoxFindMouse(LPHEADLIST lphl, int X, int Y);
70 extern void ListBoxAskMeasure(LPHEADLIST lphl, LPLISTSTRUCT lpls);
72 extern LRESULT ListBoxWndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);