Ignore:
Timestamp:
Mar 31, 2000, 4:44:25 PM (25 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/listview.cpp

    r3250 r3285  
    1 /*$Id: listview.cpp,v 1.9 2000-03-27 15:08:07 cbratschi Exp $*/
     1/*$Id: listview.cpp,v 1.10 2000-03-31 14:44:20 cbratschi Exp $*/
    22/*
    33 * Listview control
     
    164164  if ((infoPtr->uView == LVS_REPORT) && !(infoPtr->dwStyle & LVS_NOCOLUMNHEADER))
    165165  {
    166     LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO*)LISTVIEW_GetInfoPtr(hwnd);
    167166    RECT rect,rect2;
    168167
     
    35573556static LRESULT LISTVIEW_GetExtendedListViewStyle(HWND hwnd)
    35583557{
    3559     LISTVIEW_INFO *infoPtr;
     3558    LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
     3559
    35603560    /* make sure we can get the listview info */
    3561     if (!(infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd)))
    3562         return (0);
     3561    if (!infoPtr)
     3562      return (0);
    35633563    return (infoPtr->dwExStyle);
    35643564}
     
    40394039static LRESULT LISTVIEW_GetHotItem(HWND hwnd)
    40404040{
    4041     LISTVIEW_INFO *infoPtr;
     4041    LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
     4042
    40424043    /* make sure we can get the listview info */
    4043     if (!(infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd)))
    4044         return (-1);
     4044    if (!infoPtr)
     4045      return (-1);
    40454046    return (infoPtr->nHotItem);
    40464047}
     
    54955496static LRESULT LISTVIEW_SetColumnWidth(HWND hwnd, INT iCol, INT cx)
    54965497{
    5497     LISTVIEW_INFO *infoPtr;
     5498    LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
    54985499    HDITEMA hdi;
    54995500    LRESULT lret;
     5501
     5502    // make sure we can get the listview info
     5503    if (!infoPtr)
     5504        return (FALSE);
    55005505
    55015506    // set column width only if in report mode
     
    55035508        return (FALSE);
    55045509
    5505     // make sure we can get the listview info
    5506     if (!(infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd)))
    5507         return (FALSE);
    55085510    if (!infoPtr->hwndHeader) // make sure we have a header
    55095511        return (FALSE);
     
    55425544static LRESULT LISTVIEW_SetExtendedListViewStyle(HWND hwnd, DWORD dwMask, DWORD dwStyle)
    55435545{
    5544     LISTVIEW_INFO *infoPtr;
     5546    LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
    55455547    DWORD dwOldStyle;
     5548
    55465549    /* make sure we can get the listview info */
    5547     if (!(infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd)))
    5548         return (0);
     5550    if (!infoPtr)
     5551      return (0);
    55495552    /* store previous style */
    55505553    dwOldStyle = infoPtr->dwExStyle;
     
    55705573static LRESULT LISTVIEW_SetHotItem(HWND hwnd, INT iIndex)
    55715574{
    5572     LISTVIEW_INFO *infoPtr;
     5575    LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
    55735576    INT iOldIndex;
     5577
    55745578    /* make sure we can get the listview info */
    5575     if (!(infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd)))
     5579    if (!infoPtr)
    55765580        return (-1);
    55775581    /* store previous index */
     
    59265930  LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
    59275931  INT nOldIndex = infoPtr->nSelectionMark;
     5932
    59285933  infoPtr->nSelectionMark = nIndex;
    59295934  return nOldIndex;
     
    75427547static LRESULT LISTVIEW_Command(HWND hwnd, WPARAM wParam, LPARAM lParam)
    75437548{
     7549    LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
     7550
    75447551    switch (HIWORD(wParam))
    75457552    {
     
    75507557             */
    75517558            char buffer[1024];
    7552             LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)LISTVIEW_GetInfoPtr(hwnd);
    75537559            HDC           hdc      = GetDC(infoPtr->hwndEdit);
    75547560            HFONT         hFont, hOldFont = 0;
Note: See TracChangeset for help on using the changeset viewer.