这样是可以,我也调通了,但是我是用GUI_CreateDialogBox创建
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 0, 800, 480, 0, WM_CF_SHOW|WM_CF_HASTRANS, 0 },
{ IMAGE_CreateIndirect, "Image", ID_IMAGE_0, 0, 0, 400, 480, 0, 0, 0 },
{ BUTTON_CreateIndirect, "", ID_BUTTON_0, 0, 96, 134, 96, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "", ID_BUTTON_1, 0, 192, 134, 96, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "", ID_BUTTON_2, 0, 288, 134, 96, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "", ID_BUTTON_3, 0, 384, 134, 96, 0, 0x0, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_0, 146, 113, 199, 64, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_1, 6, 33, 110, 34, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_2, 344, 36, 51, 34, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_3, 352, 157, 46, 20, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_4, 146, 208, 199, 64, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_5, 352, 253, 46, 20, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_6, 146, 306, 199, 64, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_7, 352, 347, 46, 20, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_8, 146, 403, 199, 64, 0, 0x64, 0 },
{ TEXT_CreateIndirect, "Text", ID_TEXT_9, 352, 445, 46, 20, 0, 0x64, 0 },
{ MULTIPAGE_CreateIndirect, "Multipage", ID_MULTIPAGE_0, 400, 0, 400, 480, 0, 0x0, 0 },
// USER START (Optionally insert additional widgets)
// USER END
};
在初始化case WM_INIT_DIALOG:下贴图就显示不出来,和图层有关系吗 |