高级会员

- 积分
- 774
- 金钱
- 774
- 注册时间
- 2019-11-27
- 在线时间
- 87 小时
|
发表于 2021-3-16 13:45:43
|
显示全部楼层
case ID_DROPDOWN_0: // Notifications sent by 'Dropdown'
switch(NCode) {
case WM_NOTIFICATION_CLICKED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
case WM_NOTIFICATION_RELEASED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
case WM_NOTIFICATION_SEL_CHANGED:
hItem = WM_GetDialogItem(pMsg->hWin, ID_DROPDOWN_0);
DROPDOWN=DROPDOWN_GetSelExp(hItem);//u8 DROPDOWN=0;
if (DROPDOWN==1)
TEXT_SetText(WM_GetDialogItem(pMsg->hWin, ID_TEXT_1), "1");
if (DROPDOWN == 2)TEXT_SetText(WM_GetDialogItem(pMsg->hWin, ID_TEXT_1), "2"); |
|