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