Ignore:
Timestamp:
Nov 6, 2008, 10:22:26 PM (15 years ago)
Author:
イグトランス (egtra)
Message:

#228試行

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/IconEditor_Tool.cpp

    r629 r763  
    22
    33#include "common.h"
     4
     5HRESULT ApplyDialogTexture( HWND );
    46
    57char *GetIconEditToolName(DWORD id){
     
    3133}
    3234
    33 BOOL CALLBACK DlgIconButtons(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     35INT_PTR CALLBACK DlgIconButtons(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    3436    int WndNum;
    3537    RECT rect;
     
    6365            PostMessage(hwnd,WM_USER+120,0,0);
    6466
     67            ApplyDialogTexture(hwnd);
    6568            break;
    6669        case WM_USER+120:
     
    103106    return 0;
    104107}
    105 BOOL CALLBACK DlgIconType(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     108INT_PTR CALLBACK DlgIconType(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    106109    int i,WndNum;
    107110    HWND hList;
     
    139142                //"16*16 (16色)"
    140143                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);
    142145            }
    143146            if(bExist[1]==0){
    144147                //"16*16 (256色)"
    145148                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);
    147150            }
    148151            if(bExist[2]==0){
    149152                //"32*32 (16色)"
    150153                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);
    152155            }
    153156            if(bExist[3]==0){
    154157                //"32*32 (256色)"
    155158                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);
    158162            break;
    159163        case WM_COMMAND:
     
    161165                case IDOK:
    162166                    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);
    164168
    165169                    if(temporary[0]=='1'&&temporary[7]=='1') i=ICONTYPE_16_16;
     
    177181    return 0;
    178182}
    179 BOOL CALLBACK DlgIconToolProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
     183INT_PTR CALLBACK DlgIconToolProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam){
    180184    int i,WndNum;
    181185
     
    184188            switch(LOWORD(wParam)){
    185189                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);
    187191                    if(i==-1) return 1;
    188192
Note: See TracChangeset for help on using the changeset viewer.