Changeset 302 in dev for trunk/abdev/ProjectEditor/WebSearch.cpp
- Timestamp:
- Aug 24, 2007, 2:13:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/ProjectEditor/WebSearch.cpp
r83 r302 18 18 case WM_TIMER: 19 19 if(wParam==ID_TIMER_POPUP_ANIMATION){ 20 pobj_ResultList=(CResultList *)GetWindowLong (hwnd,GWL_USERDATA);20 pobj_ResultList=(CResultList *)GetWindowLongPtr(hwnd,GWLP_USERDATA); 21 21 22 22 pSetLayeredWindowAttributes(hwnd, 0,(int)((double)255/(double)100*(double)(pobj_ResultList->iAnimeCount*10)), LWA_ALPHA); … … 38 38 return 0; 39 39 case WM_PAINT: 40 pobj_ResultList=(CResultList *)GetWindowLong (hwnd,GWL_USERDATA);40 pobj_ResultList=(CResultList *)GetWindowLongPtr(hwnd,GWLP_USERDATA); 41 41 42 42 RECT ClientRect; … … 118 118 119 119 case WM_LBUTTONDOWN: 120 pobj_ResultList=(CResultList *)GetWindowLong (hwnd,GWL_USERDATA);120 pobj_ResultList=(CResultList *)GetWindowLongPtr(hwnd,GWLP_USERDATA); 121 121 122 122 GetCursorPos(&pos); … … 149 149 //ウィンドウを半透明にする 150 150 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); 153 153 pSetLayeredWindowAttributes(hwnd, 0, 0, LWA_ALPHA); 154 154 155 SetWindowLong (hwnd,GWL_USERDATA,(long)this);155 SetWindowLongPtr(hwnd,GWLP_USERDATA,(long)this); 156 156 SetTimer(hwnd,ID_TIMER_POPUP_ANIMATION,10,NULL); 157 157 BringWindowToTop(hwnd); … … 208 208 return 0; 209 209 case WM_PAINT: 210 pobj_OneTab=(COneTab *)GetWindowLong (hwnd,GWL_USERDATA);210 pobj_OneTab=(COneTab *)GetWindowLongPtr(hwnd,GWLP_USERDATA); 211 211 212 212 HBRUSH hBrush,hOldBrush; … … 276 276 return 0; 277 277 case WM_LBUTTONDOWN: 278 pobj_OneTab=(COneTab *)GetWindowLong (hwnd,GWL_USERDATA);278 pobj_OneTab=(COneTab *)GetWindowLongPtr(hwnd,GWLP_USERDATA); 279 279 280 280 ShellExecute(hwnd,"open",pobj_OneTab->lpszUrl[0],NULL,NULL,SW_SHOWNORMAL);
Note:
See TracChangeset
for help on using the changeset viewer.