Changeset 7170
- Timestamp:
- Oct 23, 2001, 7:03:49 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/comctl32/listview.c ¶
r7133 r7170 2657 2657 * SetItemFocus call. 2658 2658 */ 2659 #ifdef __WIN32OS2__ 2660 //SvL: Allow focus change the first time (nFocusedItem set to -2 2661 // in WM_CREATE 2662 if (infoPtr->nFocusedItem >= 0 || infoPtr->nFocusedItem == -2) { 2663 if(infoPtr->nFocusedItem == -2) infoPtr->nFocusedItem = -1; 2664 LISTVIEW_SetItemFocus(hwnd, lpLVItem->iItem); 2665 } 2666 #else 2659 2667 if (infoPtr->nFocusedItem >= 0) 2660 2668 LISTVIEW_SetItemFocus(hwnd, lpLVItem->iItem); 2669 #endif 2661 2670 } 2662 2671 } … … 7877 7886 /* set default values */ 7878 7887 infoPtr->uCallbackMask = 0; 7888 #ifdef __WIN32OS2__ 7889 infoPtr->nFocusedItem = -2; 7890 #else 7879 7891 infoPtr->nFocusedItem = -1; 7892 #endif 7880 7893 infoPtr->nSelectionMark = -1; 7881 7894 infoPtr->nHotItem = -1; … … 8301 8314 nmKeyDown.wVKey = nVirtualKey; 8302 8315 nmKeyDown.flags = 0; 8316 #ifdef __WIN32OS2__ 8317 if(SendMessageA(hwndParent, WM_NOTIFY, (WPARAM)nCtrlId, (LPARAM)&nmKeyDown) == TRUE) 8318 {//application processed this key press 8319 return 0; 8320 } 8321 #else 8303 8322 SendMessageA(hwndParent, WM_NOTIFY, (WPARAM)nCtrlId, (LPARAM)&nmKeyDown); 8323 #endif 8304 8324 8305 8325 /* initialize */ … … 8608 8628 LISTVIEW_RemoveAllSelections(hwnd); 8609 8629 } 8630 8631 #ifdef __WIN32OS2__ 8632 //SvL: Send WM_COMMAND as well. (also done by NT's comctl32) 8633 SendMessageA(GetParent(hwnd), WM_COMMAND, (1<<16) | nCtrlId, hwnd); 8634 #endif 8610 8635 8611 8636 /* redraw if we could have possibly selected something */
Note:
See TracChangeset
for help on using the changeset viewer.