这个就不知道啥原因了。我现在正在玩的,在资源列表中创建控件,在回调函数中完成初始化,目前没遇到啥问题。
资源列表:
{ TEXT_CreateIndirect, "Text", ID_TEXT_11, 82, 185, 26, 25, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_12, 212, 185, 20, 25, 0, 0x64, 0 },
初始化:
hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_12);
TEXT_SetTextColor(hItem, GUI_MAKE_COLOR(0x00FFFFFF));
TEXT_SetTextAlign(hItem, GUI_TA_LEFT | GUI_TA_VCENTER);
TEXT_SetFont(hItem, &GUI_Fontsongti16);
p_name = zhankongbi;
TEXT_SetText(hItem, p_name); |