Changeset 7170


Ignore:
Timestamp:
Oct 23, 2001, 7:03:49 PM (24 years ago)
Author:
sandervl
Message:

listview fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/comctl32/listview.c

    r7133 r7170  
    26572657                 * SetItemFocus call.
    26582658                 */
     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
    26592667                if (infoPtr->nFocusedItem >= 0)
    26602668                  LISTVIEW_SetItemFocus(hwnd, lpLVItem->iItem);
     2669#endif
    26612670              }
    26622671            }
     
    78777886  /* set default values */
    78787887  infoPtr->uCallbackMask = 0;
     7888#ifdef __WIN32OS2__
     7889  infoPtr->nFocusedItem = -2;
     7890#else
    78797891  infoPtr->nFocusedItem = -1;
     7892#endif
    78807893  infoPtr->nSelectionMark = -1;
    78817894  infoPtr->nHotItem = -1;
     
    83018314  nmKeyDown.wVKey = nVirtualKey;
    83028315  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
    83038322  SendMessageA(hwndParent, WM_NOTIFY, (WPARAM)nCtrlId, (LPARAM)&nmKeyDown);
     8323#endif
    83048324
    83058325  /* initialize */
     
    86088628    LISTVIEW_RemoveAllSelections(hwnd);
    86098629  }
     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
    86108635
    86118636  /* redraw if we could have possibly selected something */
Note: See TracChangeset for help on using the changeset viewer.