金牌会员
- 积分
- 2374
- 金钱
- 2374
- 注册时间
- 2017-8-7
- 在线时间
- 207 小时
|
楼主 |
发表于 2018-6-22 16:19:15
|
显示全部楼层
[mw_shl_code=c,true] case WM_INIT_DIALOG:
//3õê¼»ˉBUTTON0
hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_0);
BUTTON_SetFont(hItem, &GUI_FontHZ32);
hMemButtonStreamBitmap=dispbmpbutton("1:BACKP/BACK07.dta");
bmpbuffer1= GUI_ALLOC_h2p(hMemButtonStreamBitmap);
GUI_CreateBitmapFromStream(&Bitmapbutton,&Palettebutton, bmpbuffer1);
BUTTON_SetBitmap(hItem,BUTTON_BI_UNPRESSED,&Bitmapbutton);
//GUI_ALLOC_Free(hMemButtonStreamBitmap);
if(language_set==1)
BUTTON_SetText(hItem, "Open");
else
BUTTON_SetText(hItem, "¿aÃÅ");
//3õê¼»ˉBUTTON1
hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_1);
hMemButtonStreamBitmap=dispbmpbutton("1:BACKP/BACK05.dta");
bmpbuffer1= GUI_ALLOC_h2p(hMemButtonStreamBitmap);
GUI_CreateBitmapFromStream(&Bitmapbutton1,&Palettebutton, bmpbuffer1);
BUTTON_SetBitmap(hItem,BUTTON_BI_UNPRESSED,&Bitmapbutton1);
//GUI_ALLOC_Free(hMemButtonStreamBitmap);
BUTTON_SetText(hItem, "");
//3õê¼»ˉBUTTON5
hItem = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_5);
hMemButtonStreamBitmap=dispbmpbutton("1:BACKP/BACK02.dta");
bmpbuffer1= GUI_ALLOC_h2p(hMemButtonStreamBitmap);
GUI_CreateBitmapFromStream(&Bitmapbutton2,&Palettebutton, bmpbuffer1);
BUTTON_SetBitmap(hItem,BUTTON_BI_UNPRESSED,&Bitmapbutton2);
//GUI_ALLOC_Free(hMemButtonStreamBitmap);
BUTTON_SetText(hItem, "");
break;[/mw_shl_code] |
|