初级会员
- 积分
- 185
- 金钱
- 185
- 注册时间
- 2017-6-30
- 在线时间
- 43 小时
|
发表于 2018-9-14 15:49:40
|
显示全部楼层
我用了这个整个屏幕都死机 case ID_BUTTON_0: // Notifications sent by 'Button'
switch(NCode)
{
case WM_NOTIFICATION_CLICKED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
case WM_NOTIFICATION_RELEASED:
hItem = WM_GetDialogItem(hDlg, ID_DROPDOWN_0);
for(i=0;i<4;i++)
{
hItem = WM_GetDialogItem(hDlg,ID_DROPDOWN_0+i); //»ñè¡CHECKBOXμľä±ú
Index =DROPDOWN_GetSel(hItem);
USART_SendData(USART1,Index);//DROPDOWN_SetItemDisabled()
// BUTTON_SetPressed(hItem,1);//GUI_CreateDialogBox();
}
hItem = WM_GetDialogItem(hDlg, ID_BUTTON_0);
WM_DisableWindow(hItem);
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
|
|