[mw_shl_code=c,true]#include "mainmenu.h"
#include "bitmap.h"
BUTTON_Handle hButton[6];
WM_HWIN hMain;
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 50, 0, 240, 320, 0, 0x0},
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_0, 1, 0, 80, 80, 0, 0x0},
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_1, 82, 0, 80, 80, 0, 0x0},
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_2, 1, 81, 80, 80, 0, 0x0},
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_3, 82, 81, 80, 80, 0, 0x0},
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_4, 1, 162, 80, 80, 0, 0x0},
{ BUTTON_CreateIndirect, "Button", ID_BUTTON_5, 82, 162, 80, 80, 0, 0x0},
{ TEXT_CreateIndirect, "Text", ID_TEXT_00, 165, 8, 70, 20, 0, 0x0},
{ TEXT_CreateIndirect, "Text", ID_TEXT_11, 165, 36, 70, 20, 0, 0x0},
{ TEXT_CreateIndirect, "Text", ID_TEXT_22, 165, 64, 70, 20, 0, 0x0}
};
static void _cbDialog(WM_MESSAGE * pMsg) {
WM_HWIN hItem;
int NCode;
int Id;
switch (pMsg->MsgId) {
case WM_INIT_DIALOG:
hMain = pMsg->hWin;
WINDOW_SetBkColor(hMain,0x00FFFF80);
hButton[0] = WM_GetDialogItem(pMsg->hWin, ID_BUTTON_0);
BUTTON_SetText(hButton[0], "T&H");
BUTTON_SetTextAlign(hButton[0],GUI_TA_BOTTOM|GUI_TA_HCENTER);
。。。。。
}
}[/mw_shl_code]
报错信息是 Error: L6218E: Undefined symbol WINDOW_SetBkColor (referred from mainmenu.o).请问这个怎么解决?这个函数在哪里能找到?
|