case WM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc);
NCode = pMsg->Data.v;
switch(Id)
{
case ID_BUTTON_0: //BUTTON_0触发蜂鸣器
switch(NCode)
{
case WM_NOTIFICATION_CLICKED:
break;
case WM_NOTIFICATION_RELEASED:
beepsta=!beepsta;
PCF8574_WriteBit(BEEP_IO,beepsta); //运行代码例程中触发蜂鸣器的指令可行
break;
}
break;
case ID_BUTTON_1: //BUTTON_1控制电机启动
switch(NCode)
{
case WM_NOTIFICATION_CLICKED:
break;
case WM_NOTIFICATION_RELEASED:
i=0; //按下BOUTTON这个i变量无法改变,变量声明中i默认值为1