Changeset 763 in dev for trunk/ab5.0/abdev/abdev/IconEditor_Tool.cpp
- Timestamp:
- Nov 6, 2008, 10:22:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/IconEditor_Tool.cpp
r629 r763 2 2 3 3 #include "common.h" 4 5 HRESULT ApplyDialogTexture( HWND ); 4 6 5 7 char *GetIconEditToolName(DWORD id){ … … 31 33 } 32 34 33 BOOLCALLBACK DlgIconButtons(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){35 INT_PTR CALLBACK DlgIconButtons(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ 34 36 int WndNum; 35 37 RECT rect; … … 63 65 PostMessage(hwnd,WM_USER+120,0,0); 64 66 67 ApplyDialogTexture(hwnd); 65 68 break; 66 69 case WM_USER+120: … … 103 106 return 0; 104 107 } 105 BOOLCALLBACK DlgIconType(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){108 INT_PTR CALLBACK DlgIconType(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ 106 109 int i,WndNum; 107 110 HWND hList; … … 139 142 //"16*16 (16色)" 140 143 sprintf(temporary,"16*16 (16%s)",STRING_UNIT_COLORS); 141 SendMessage(hList,LB_ADDSTRING,0,( long)temporary);144 SendMessage(hList,LB_ADDSTRING,0,(LPARAM)temporary); 142 145 } 143 146 if(bExist[1]==0){ 144 147 //"16*16 (256色)" 145 148 sprintf(temporary,"16*16 (256%s)",STRING_UNIT_COLORS); 146 SendMessage(hList,LB_ADDSTRING,0,( long)temporary);149 SendMessage(hList,LB_ADDSTRING,0,(LPARAM)temporary); 147 150 } 148 151 if(bExist[2]==0){ 149 152 //"32*32 (16色)" 150 153 sprintf(temporary,"32*32 (16%s)",STRING_UNIT_COLORS); 151 SendMessage(hList,LB_ADDSTRING,0,( long)temporary);154 SendMessage(hList,LB_ADDSTRING,0,(LPARAM)temporary); 152 155 } 153 156 if(bExist[3]==0){ 154 157 //"32*32 (256色)" 155 158 sprintf(temporary,"32*32 (256%s)",STRING_UNIT_COLORS); 156 SendMessage(hList,LB_ADDSTRING,0,(long)temporary); 157 } 159 SendMessage(hList,LB_ADDSTRING,0,(LPARAM)temporary); 160 } 161 ApplyDialogTexture(hwnd); 158 162 break; 159 163 case WM_COMMAND: … … 161 165 case IDOK: 162 166 hList=GetDlgItem(hwnd,IDC_TYPELIST); 163 SendMessage(hList,LB_GETTEXT,SendMessage(hList,LB_GETCURSEL,0,0),( long)temporary);167 SendMessage(hList,LB_GETTEXT,SendMessage(hList,LB_GETCURSEL,0,0),(LPARAM)temporary); 164 168 165 169 if(temporary[0]=='1'&&temporary[7]=='1') i=ICONTYPE_16_16; … … 177 181 return 0; 178 182 } 179 BOOLCALLBACK DlgIconToolProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){183 INT_PTR CALLBACK DlgIconToolProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){ 180 184 int i,WndNum; 181 185 … … 184 188 switch(LOWORD(wParam)){ 185 189 case IDC_ADD_ICONTYPE: 186 i=DialogBox(hResInst,MAKEINTRESOURCE(IDD_ICONEDIT_ICONTYPE),GetParent(hwnd), (DLGPROC)DlgIconType);190 i=DialogBox(hResInst,MAKEINTRESOURCE(IDD_ICONEDIT_ICONTYPE),GetParent(hwnd),DlgIconType); 187 191 if(i==-1) return 1; 188 192
Note:
See TracChangeset
for help on using the changeset viewer.