Ignore:
Timestamp:
Jun 22, 2011, 2:53:40 PM (14 years ago)
Author:
dmik
Message:

user32: Minor cleanup (consistency).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbasenonclient.cpp

    r21641 r21642  
    216216
    217217  SCROLL_HandleScrollEvent(getWindowHandle(),0,MAKELONG(pt.x,pt.y),scrollbar,WM_LBUTTONDOWN);
    218   if (GetCapture() != Win32Hwnd) return;
     218  if (GetCapture() != getWindowHandle()) return;
    219219  do
    220220  {
     
    229229            pt.y = msg.pt.y;
    230230            ScreenToClient(getWindowHandle(), &pt);
    231         pt.x += rectClient.left;
    232         pt.y += rectClient.top;
     231            pt.x += rectClient.left;
     232            pt.y += rectClient.top;
    233233            msg.lParam = MAKELONG(pt.x,pt.y);
    234234
    235235        case WM_SYSTIMER:
    236             SCROLL_HandleScrollEvent(Win32Hwnd,msg.wParam,msg.lParam,scrollbar,msg.message);
     236            SCROLL_HandleScrollEvent(getWindowHandle(),msg.wParam,msg.lParam,scrollbar,msg.message);
    237237            break;
    238238
     
    395395  if (dwExStyle & WS_EX_CLIENTEDGE)
    396396    InflateRect (rect, GetSystemMetrics(SM_CXEDGE), GetSystemMetrics(SM_CYEDGE));
    397  
     397
    398398  //@@PF Wine does not have this but inner rect shrinks when
    399399  //WS_EX_STATICEDGE is usedd not on a child
     
    921921         if (hSysIcon) {
    922922             int size = GetSystemMetrics(SM_CYCAPTION);
    923    
     923
    924924             r2 = r;
    925925             r2.right  = r2.left + size;
     
    13891389#if 0
    13901390    {
    1391             for(int i=0;i<25000;i++) 
     1391            for(int i=0;i<25000;i++)
    13921392            {
    13931393                MSG msg;
    13941394
    13951395                InvalidateRect(Win32Hwnd, 0, 1);
    1396                 while(PeekMessageA(&msg, 0, 0, 0, TRUE) == TRUE) 
     1396                while(PeekMessageA(&msg, 0, 0, 0, TRUE) == TRUE)
    13971397                {
    13981398                    DispatchMessageA(&msg);
Note: See TracChangeset for help on using the changeset viewer.