請問已窗口的額外字節數設為12。卻無法將hWin_temp的12個字節資料傳入。但設為8個字節卻沒問題,請問是哪裡出問題呢 感謝~
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 0, 480, 272, 0, 0x0, 12 },
{ BUTTON_CreateIndirect, "B", ID_BUTTON_0, 145, 183, 80, 60, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "A", ID_BUTTON_1, 26, 187, 80, 56, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "C", ID_BUTTON_2, 292, 190, 80, 46, 0, 0x0, 0 },
// USER START (Optionally insert additional widgets)
// USER END
};
WM_HWIN CreateWindow(void) {
WM_HWIN hWin,hWin_temp[3];
hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
hWin_temp[0] =33;
hWin_temp[1] =55;
hWin_temp[2] =66;
WM_SetUserData(hWin,hWin_temp,12);
return hWin;
}
|