Changeset 7815 for trunk/src/comctl32/comboex.c
- Timestamp:
- Feb 6, 2002, 6:23:21 PM (24 years ago)
- File:
-
- 1 edited
-
trunk/src/comctl32/comboex.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/comboex.c
r7726 r7815 52 52 * mod 4 53 53 * 1. Implemented CBN_SELCHANGE, CBN_KILLFOCUS, and CBN_SELENDOK. 54 * 2. Fix putting text in CBEN_ENDEDIT notif ys for CBN_DROPDOWN case.54 * 2. Fix putting text in CBEN_ENDEDIT notifies for CBN_DROPDOWN case. 55 55 * 3. Lock image selected status to focus state of edit control if 56 56 * edit control exists. Mimics native actions. … … 87 87 #include "debugtools.h" 88 88 #include "wine/unicode.h" 89 #ifdef __WIN32OS2__90 #include "ccbase.h"91 #define inline92 #endif93 89 94 90 DEFAULT_DEBUG_CHANNEL(comboex); … … 116 112 typedef struct 117 113 { 118 #ifdef __WIN32OS2__119 COMCTL32_HEADER header;120 #endif121 114 HIMAGELIST himl; 122 115 HWND hwndSelf; /* my own hwnd */ … … 128 121 INT selected; /* index of selected item */ 129 122 DWORD flags; /* WINE internal flags */ 130 #ifdef __WIN32OS2__131 123 HFONT hDefaultFont; 132 #endif133 124 HFONT font; 134 135 125 INT nb_items; /* Number of items */ 136 126 BOOL bUnicode; /* TRUE if this window is Unicode */ … … 543 533 COMBOEX_INFO *infoPtr = COMBOEX_GetInfoPtr (hwnd); 544 534 545 TRACE("-- 0x%p\n", infoPtr->himl);535 TRACE("-- %p\n", infoPtr->himl); 546 536 547 537 return (LRESULT)infoPtr->himl; … … 1099 1089 1100 1090 /* allocate memory for info structure */ 1101 #ifdef __WIN32OS2__1102 infoPtr = (COMBOEX_INFO*)initControl(hwnd,sizeof(COMBOEX_INFO));1103 #else1104 1091 infoPtr = (COMBOEX_INFO *)COMCTL32_Alloc (sizeof(COMBOEX_INFO)); 1105 #endif1106 1092 if (infoPtr == NULL) { 1107 1093 ERR("could not allocate info memory!\n"); … … 1225 1211 SystemParametersInfoA (SPI_GETICONTITLELOGFONT, sizeof(mylogfont), 1226 1212 &mylogfont, 0); 1227 #ifdef __WIN32OS2__1228 1213 infoPtr->font = infoPtr->hDefaultFont = CreateFontIndirectA (&mylogfont); 1229 #else1230 infoPtr->font = CreateFontIndirectA (&mylogfont);1231 #endif1232 1214 } 1233 1215 SendMessageW (infoPtr->hwndCombo, WM_SETFONT, (WPARAM)infoPtr->font, 0); … … 1460 1442 dis->CtlType, dis->CtlID, dis->itemID, dis->hwndItem, dis->itemData); 1461 1443 1462 if ( (dis->itemID >= infoPtr->nb_items) || (dis->itemID < 0)) return FALSE;1444 if (dis->itemID >= infoPtr->nb_items) return FALSE; 1463 1445 1464 1446 olditem = infoPtr->items; … … 1770 1752 } 1771 1753 1772 #ifdef __WIN32OS2__1773 //NEVER delete the font object received by WM_SETFONT!1774 1754 if (infoPtr->hDefaultFont) DeleteObject (infoPtr->hDefaultFont); 1775 #else1776 DeleteObject (infoPtr->font);1777 #endif1778 1755 1779 1756 /* free comboex info data */ … … 2474 2451 ERR("unknown msg %04x wp=%08x lp=%08lx\n", 2475 2452 uMsg, wParam, lParam); 2476 #ifdef __WIN32OS2__2477 return defComCtl32ProcA (hwnd, uMsg, wParam, lParam);2478 #else2479 2453 return DefWindowProcA (hwnd, uMsg, wParam, lParam); 2480 #endif2481 2454 } 2482 2455 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.
