+ // Create new widget structure
+ ret = malloc(sizeof(tAxWin3_Widget));
+ ret->Window = Parent->Window;
+ ret->ID = newID;
+ ret->Callback = NULL;
+
+ info->Elements[newID] = ret;
+
+ // Send create widget message
+ {
+ char tmp[sizeof(tWidgetMsg_Create)+1];
+ tWidgetMsg_Create *msg = (void*)tmp;
+ msg->Parent = Parent->ID;
+ msg->NewID = newID;
+ msg->DebugName[0] = '\0';
+ AxWin3_SendMessage(ret->Window, ret->Window, MSG_WIDGET_CREATE, sizeof(tmp), tmp);
+ }
+
+ return ret;