Ignore:
Timestamp:
Aug 24, 2007, 2:13:12 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/ProjectEditor/WebSearch.cpp

    r83 r302  
    1818        case WM_TIMER:
    1919            if(wParam==ID_TIMER_POPUP_ANIMATION){
    20                 pobj_ResultList=(CResultList *)GetWindowLong(hwnd,GWL_USERDATA);
     20                pobj_ResultList=(CResultList *)GetWindowLongPtr(hwnd,GWLP_USERDATA);
    2121
    2222                pSetLayeredWindowAttributes(hwnd, 0,(int)((double)255/(double)100*(double)(pobj_ResultList->iAnimeCount*10)), LWA_ALPHA);
     
    3838            return 0;
    3939        case WM_PAINT:
    40             pobj_ResultList=(CResultList *)GetWindowLong(hwnd,GWL_USERDATA);
     40            pobj_ResultList=(CResultList *)GetWindowLongPtr(hwnd,GWLP_USERDATA);
    4141
    4242            RECT ClientRect;
     
    118118
    119119        case WM_LBUTTONDOWN:
    120             pobj_ResultList=(CResultList *)GetWindowLong(hwnd,GWL_USERDATA);
     120            pobj_ResultList=(CResultList *)GetWindowLongPtr(hwnd,GWLP_USERDATA);
    121121
    122122            GetCursorPos(&pos);
     
    149149    //ウィンドウを半透明にする
    150150    int lStyle;
    151     lStyle=GetWindowLong(hwnd,GWL_EXSTYLE) | WS_EX_LAYERED;
    152     SetWindowLong(hwnd,GWL_EXSTYLE,lStyle);
     151    lStyle=GetWindowLongPtr(hwnd,GWL_EXSTYLE) | WS_EX_LAYERED;
     152    SetWindowLongPtr(hwnd,GWL_EXSTYLE,lStyle);
    153153    pSetLayeredWindowAttributes(hwnd, 0, 0, LWA_ALPHA);
    154154
    155     SetWindowLong(hwnd,GWL_USERDATA,(long)this);
     155    SetWindowLongPtr(hwnd,GWLP_USERDATA,(long)this);
    156156    SetTimer(hwnd,ID_TIMER_POPUP_ANIMATION,10,NULL);
    157157    BringWindowToTop(hwnd);
     
    208208            return 0;
    209209        case WM_PAINT:
    210             pobj_OneTab=(COneTab *)GetWindowLong(hwnd,GWL_USERDATA);
     210            pobj_OneTab=(COneTab *)GetWindowLongPtr(hwnd,GWLP_USERDATA);
    211211
    212212            HBRUSH hBrush,hOldBrush;
     
    276276            return 0;
    277277        case WM_LBUTTONDOWN:
    278             pobj_OneTab=(COneTab *)GetWindowLong(hwnd,GWL_USERDATA);
     278            pobj_OneTab=(COneTab *)GetWindowLongPtr(hwnd,GWLP_USERDATA);
    279279
    280280            ShellExecute(hwnd,"open",pobj_OneTab->lpszUrl[0],NULL,NULL,SW_SHOWNORMAL);
Note: See TracChangeset for help on using the changeset viewer.