Changeset 1184 for trunk/src/user32/combo.cpp
- Timestamp:
- Oct 8, 1999, 2:10:27 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/combo.cpp
r1096 r1184 1 /* $Id: combo.cpp,v 1. 2 1999-10-01 10:15:22 sandervlExp $ */1 /* $Id: combo.cpp,v 1.3 1999-10-08 12:10:26 cbratschi Exp $ */ 2 2 /* 3 3 * Combo controls … … 58 58 if(hDC) 59 59 { 60 BOOL bRet = FALSE; 60 BOOL bRet = FALSE; 61 HINSTANCE hinst; 62 63 //CB: Open32 hack to load our own bitmap 64 hinst = LoadLibraryA("USER32.DLL"); 61 65 hComboBmp = NativeLoadBitmap(0,MAKEINTRESOURCEA(OBM_COMBO)); 66 FreeLibrary(hinst); 62 67 if(hComboBmp) 63 68 { … … 532 537 lbeStyle |= LBS_DISABLENOSCROLL; 533 538 534 if( CB_GETTYPE(lphc) == CBS_SIMPLE ) 539 if( CB_GETTYPE(lphc) == CBS_SIMPLE ) /* child listbox */ 535 540 { 536 537 538 539 540 541 541 lbeStyle |= WS_CHILD | WS_VISIBLE; 542 543 /* 544 * In win 95 look n feel, the listbox in the simple combobox has 545 * the WS_EXCLIENTEDGE style instead of the WS_BORDER style. 546 */ 542 547 lbeStyle &= ~WS_BORDER; 543 548 lbeExStyle |= WS_EX_CLIENTEDGE; 544 549 } 545 else 546 550 else /* popup listbox */ 551 lbeStyle |= WS_POPUP; 547 552 548 553 /* Dropdown ComboLBox is not a child window and we cannot pass … … 1132 1137 1133 1138 SetWindowPos( lphc->hWndLBox, HWND_TOP, rect.left, rect.bottom, 1134 1139 lphc->droppedRect.right - lphc->droppedRect.left, 1135 1140 nDroppedHeight, 1136 1141 SWP_NOACTIVATE | SWP_NOREDRAW); 1137 1142 1138 1143 … … 1164 1169 RECT rect; 1165 1170 1166 1167 1168 1169 1170 1171 /* 1172 * It seems useful to send the WM_LBUTTONUP with (-1,-1) when cancelling 1173 * and with (0,0) (anywhere in the listbox) when Oking. 1174 */ 1175 SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) ); 1171 1176 1172 1177 lphc->wState &= ~CBF_DROPPED;
Note:
See TracChangeset
for help on using the changeset viewer.