Ignore:
Timestamp:
Dec 26, 1999, 6:32:14 PM (26 years ago)
Author:
cbratschi
Message:

NC fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/status.c

    r2190 r2205  
    1 /* $Id: status.c,v 1.16 1999-12-22 18:10:09 cbratschi Exp $ */
     1/* $Id: status.c,v 1.17 1999-12-26 17:32:13 cbratschi Exp $ */
    22/*
    33 * Interface code to StatusWindow widget/control
     
    10001000}
    10011001
    1002 static LRESULT STATUSBAR_WMSetCursor(HWND hwnd,WPARAM wParam,LPARAM lParam)
    1003 {
    1004   DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    1005 
    1006   if (dwStyle & SBARS_SIZEGRIP)
    1007   {
    1008     RECT rect = STATUSBAR_GetSizeBox(hwnd);
    1009     POINT pt;
    1010 
    1011     GetCursorPos(&pt);
    1012     ScreenToClient(hwnd,&pt);
    1013 
    1014     if (PtInRect(&rect,pt))
    1015     {
    1016       SetCursor(LoadCursorA(0,IDC_SIZENWSEA));
    1017       return TRUE;
    1018     }
    1019   }
    1020 
    1021   return DefWindowProcA(hwnd,WM_SETCURSOR,wParam,lParam);
    1022 }
    1023 
    10241002static LRESULT
    10251003STATUSBAR_WMMouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
     
    10571035STATUSBAR_WMNCLButtonDown (HWND hwnd, WPARAM wParam, LPARAM lParam)
    10581036{
    1059   DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE);
    1060 
    1061   if (dwStyle & SBARS_SIZEGRIP && !(dwStyle & CCS_TOP))
    1062   {
    1063     RECT rect = STATUSBAR_GetSizeBox(hwnd);
    1064     POINT point;
    1065 
    1066     point.x = (SHORT)LOWORD(lParam);
    1067     point.y = (SHORT)HIWORD(lParam);
    1068     ScreenToClient(hwnd,&point);
    1069 
    1070     if (PtInRect(&rect,point)) TrackWin32Window(GetParent(hwnd),FALSE);
    1071 
    1072     return 0;
    1073   }
    1074 
    10751037  PostMessageA (GetParent (hwnd), WM_NCLBUTTONDOWN, wParam, lParam);
    10761038  return 0;
     
    13121274            return STATUSBAR_SendNotify (hwnd, NM_RCLICK);
    13131275
    1314         case WM_SETCURSOR:
    1315             return STATUSBAR_WMSetCursor(hwnd,wParam,lParam);
    1316 
    13171276        case WM_SETFONT:
    13181277            return STATUSBAR_WMSetFont (hwnd, wParam, lParam);
Note: See TracChangeset for help on using the changeset viewer.