Kod wygląda tak:
CODE
IPrepare:
UIActionAdd(CONFIG , 0, ACTT_GROUP, "Źródła", 0, 0, 100);
UIActionAdd(CONFIG, CONFIG_ADDRESS, ACTT_HWND|ACTSC_INLINE, "ListBox", 0, 0, 100);
UIActionCfgAdd(CONFIG, IMIB_CFG, ACTT_EDIT, 0, CONFIG_ADDRESS_ADDRESS, 0, 0, 310);
UIActionCfgAdd(CONFIG, IMIB_CFG, ACTT_BUTTON|ACTSC_INLINE, "Dodaj", CONFIG_ADDRESS_ADD, 165, 0);
UIActionCfgAdd(CONFIG, IMIB_CFG, ACTT_BUTTON|ACTSC_INLINE, "Zapisz", CONFIG_ADDRESS_SAVE, 0, 0);
UIActionCfgAdd(CONFIG, IMIB_CFG, ACTT_BUTTON, "Usuń", CONFIG_ADDRESS_DELETE, 0, 0);
UIActionAdd(CONFIG, 0, ACTT_GROUPEND);
ActionProc:
case CONFIG_ADDRESS:
{
if (anBase->code == ACTN_CREATEWINDOW)
{
sUIActionNotify_createWindow* an = static_cast<sUIActionNotify_createWindow*>(anBase);
an->w = 150;
an->h = 100;
an->hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, "ListBox", 0, WS_TABSTOP|WS_CHILD|WS_VISIBLE|LBS_NOTIFY|WS_VSCROLL, an->x, an->y, an->w, an->h, an->hwndParent, (HMENU)an->act.id, Ctrl->hDll(),0);
an->x += 160;
SendMessage (an->hwnd, WM_SETFONT, (WPARAM)an->font, true);
}
else if (anBase->code == ACTN_DESTROYWINDOW)
{
sUIActionNotify_destroyWindow* an = (anBase->s_size>=sizeof(sUIActionNotify_destroyWindow))?static_cast<sUIActionNotify_destroyWindow*>(anBase):0;
DestroyWindow(an->hwnd);
}
}
break;
Niestety powstaje pewien problem:
Co można z tym zrobić?