问题:
caseWM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc); //Id of widget
NCode = pMsg->Data.v; // Notification code
switch (NCode) {
case WM_NOTIFICATION_RELEASED: // React only if released
if (Id == GUI_ID_OK) { // OK Button
GUI_MessageBox("Message","caption",GUI_MESSAGEBOX_CF_MOVEABLE);
}
if (Id == GUI_ID_LISTBOX0 ){
pObj=LISTBOX_H2P(hListBox);
LISTBOX_GetItemText(hListBox,1,ListItemName,20); GUI_MessageBox("item is:",ListItemName,GUI_MESSAGEBOX_CF_MOVEABLE);
//改成下面这句正确..
//MESSAGEBOX_Create(ListItemName,"itemis:",GUI_MESSAGEBOX_CF_MOVEABLE);
}