Implemented the Win95 look and feel.
This commit is contained in:
parent
373db5cea2
commit
f585c61dd1
943
controls/combo.c
943
controls/combo.c
File diff suppressed because it is too large
Load Diff
|
@ -2077,7 +2077,7 @@ static BOOL LISTBOX_Create( WND *wnd, LPHEADCOMBO lphc )
|
||||||
if( descr->lphc && (descr->lphc->dwStyle & CBS_DROPDOWN))
|
if( descr->lphc && (descr->lphc->dwStyle & CBS_DROPDOWN))
|
||||||
{
|
{
|
||||||
/* WinWord gets VERY unhappy if we send WM_MEASUREITEM from here */
|
/* WinWord gets VERY unhappy if we send WM_MEASUREITEM from here */
|
||||||
descr->item_height = lphc->RectButton.bottom - lphc->RectButton.top - 6;
|
descr->item_height = lphc->fixedOwnerDrawHeight;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,9 +34,10 @@ typedef struct
|
||||||
HWND hWndLBox;
|
HWND hWndLBox;
|
||||||
UINT wState;
|
UINT wState;
|
||||||
HFONT hFont;
|
HFONT hFont;
|
||||||
RECT RectCombo;
|
RECT textRect;
|
||||||
RECT RectEdit;
|
RECT buttonRect;
|
||||||
RECT RectButton;
|
RECT droppedRect;
|
||||||
|
INT fixedOwnerDrawHeight;
|
||||||
INT droppedWidth; /* last two are not used unless set */
|
INT droppedWidth; /* last two are not used unless set */
|
||||||
INT editHeight; /* explicitly */
|
INT editHeight; /* explicitly */
|
||||||
} HEADCOMBO,*LPHEADCOMBO;
|
} HEADCOMBO,*LPHEADCOMBO;
|
||||||
|
|
Loading…
Reference in New Issue