Wed Mar 13 19:46:50 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [controls/edit.c] Removed calls to memmove (not portable). * [debugger/dbg.y] [debugger/debug.l] Prefixed all token with 't' to avoid conflicts with type definitions. Added 'walk queue', 'walk class' and 'info class' commands. * [debugger/info.c] Moved queue and window information functions to windows/queue.c and windows/win.c respectively. * [loader/signal.c] Added SIGHUP handling to force entry into built-in debugger. Cleaned up a bit. * [misc/spy.c] General cleanup and performance improvements. * [windows/class.c] Added CLASS_DumpClass() and CLASS_WalkClasses() functions for debugger. * [windows/event.c] Pressing Ctrl-Alt-Return forces an entry into the debugger. Not sure if this key combination is a good choice... * [windows/message.c] [windows/queue.c] (New file) Moved message queue handling functions to windows/queue.c. Tue Mar 12 14:55:16 1996 Onno Hovers <onno@stack.urc.tue.nl> * [if1632/except.S] [include/except.h] [win32/except.c] (New files) Implemented Win32 exception functions: RaiseException(), RtlUnwind(), SetUnhandledExceptionFilter() and UnhandledExceptionFilter(). Mon Mar 11 19:23:29 1996 Albrecht Kleine <kleine@ak.sax.de> * [controls/listbox.c] [include/listbox.h] Special handling for COMBOLBOX styles introduced via extension of HEADLIST structure: lphl->dwStyle. Mon Mar 11 13:31:06 1996 Greg Kreider <kreider@natlab.research.philips.com> * [controls/combo.c] Any mouse movement within a small distance (defined by CBLMM_EDGE) of the top or bottom edge causes the window to scroll. Also moved some assignments so the routine works correctly. * [controls/listbox.c] Changing selection in ListBoxSetCurSel now updates PrevFocused. Added to LBSetFont and CreateListBoxStruct a fake hdc that tests and sets the standard text height. Sun Mar 10 08:39:23 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu> * [windows/dce.c] Fixed memory leak in DCE_ClipWindows().
73 lines
2.6 KiB
C
73 lines
2.6 KiB
C
/*
|
|
* Listbox definitions
|
|
*/
|
|
|
|
typedef struct tagLISTSTRUCT {
|
|
MEASUREITEMSTRUCT mis;
|
|
UINT itemState;
|
|
RECT itemRect;
|
|
HANDLE hData;
|
|
char *itemText;
|
|
struct tagLISTSTRUCT *lpNext;
|
|
} LISTSTRUCT, *LPLISTSTRUCT;
|
|
|
|
typedef struct {
|
|
WORD FirstVisible;
|
|
WORD ItemsCount;
|
|
WORD ItemsVisible;
|
|
WORD ColumnsVisible;
|
|
WORD ItemsPerColumn;
|
|
short ItemFocused;
|
|
short PrevFocused;
|
|
WORD StdItemHeight;
|
|
WORD ColumnsWidth;
|
|
WORD DrawCtlType;
|
|
WORD CtlID;
|
|
LPLISTSTRUCT lpFirst;
|
|
HWND hSelf;
|
|
DWORD dwStyle; /* added for COMBOLBOX style faking */
|
|
HWND hParent;
|
|
HFONT hFont;
|
|
BOOL bRedrawFlag;
|
|
BOOL HasStrings;
|
|
BOOL OwnerDrawn;
|
|
WORD iNumStops;
|
|
LPINT TabStops;
|
|
HANDLE hDrawItemStruct;
|
|
BOOL needMeasure;
|
|
HANDLE HeapSel;
|
|
/* MDESC *Heap; */
|
|
} HEADLIST,*LPHEADLIST;
|
|
|
|
/* shared code between listbox and combo controls */
|
|
extern void CreateListBoxStruct(HWND hwnd, WORD CtlType, LONG styles, HWND parent);
|
|
extern void DestroyListBoxStruct(LPHEADLIST lphl);
|
|
|
|
extern void ListBoxSendNotification(LPHEADLIST lphl, WORD code);
|
|
|
|
extern LPLISTSTRUCT ListBoxGetItem(LPHEADLIST lphl, UINT uIndex);
|
|
extern int ListMaxFirstVisible(LPHEADLIST lphl);
|
|
extern int ListBoxScrollToFocus(LPHEADLIST lphl);
|
|
extern int ListBoxAddString(LPHEADLIST lphl, LPCSTR newstr);
|
|
extern int ListBoxInsertString(LPHEADLIST lphl, UINT uIndex, LPCSTR newstr);
|
|
extern int ListBoxGetText(LPHEADLIST lphl, UINT uIndex, LPSTR OutStr);
|
|
extern DWORD ListBoxGetItemData(LPHEADLIST lphl, UINT uIndex);
|
|
extern int ListBoxSetItemData(LPHEADLIST lphl, UINT uIndex, DWORD ItemData);
|
|
extern int ListBoxDeleteString(LPHEADLIST lphl, UINT uIndex);
|
|
extern int ListBoxFindString(LPHEADLIST lphl, UINT nFirst, SEGPTR MatchStr);
|
|
extern int ListBoxResetContent(LPHEADLIST lphl);
|
|
extern int ListBoxSetCurSel(LPHEADLIST lphl, WORD wIndex);
|
|
extern int ListBoxSetSel(LPHEADLIST lphl, WORD wIndex, WORD state);
|
|
extern int ListBoxGetSel(LPHEADLIST lphl, WORD wIndex);
|
|
extern LONG ListBoxDirectory(LPHEADLIST lphl, UINT attrib, LPCSTR filespec);
|
|
extern int ListBoxGetItemRect(LPHEADLIST lphl, WORD wIndex, LPRECT rect);
|
|
extern int ListBoxSetItemHeight(LPHEADLIST lphl, WORD wIndex, long height);
|
|
extern int ListBoxFindNextMatch(LPHEADLIST lphl, WORD wChar);
|
|
|
|
extern void ListBoxDrawItem (HWND hwnd, LPHEADLIST lphl, HDC hdc,
|
|
LPLISTSTRUCT lpls, RECT *rect, WORD itemAction,
|
|
WORD itemState);
|
|
extern int ListBoxFindMouse(LPHEADLIST lphl, int X, int Y);
|
|
extern void ListBoxAskMeasure(LPHEADLIST lphl, LPLISTSTRUCT lpls);
|
|
|
|
extern LRESULT ListBoxWndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
|