高级会员
- 积分
- 755
- 金钱
- 755
- 注册时间
- 2016-3-17
- 在线时间
- 175 小时
|
3金钱
hwin = ICONVIEW_CreateEx(37, 32,64, 64, hItem, WM_CF_SHOW | WM_CF_HASTRANS, 0, GUI_ID_ICONVIEW0, 64, 64);
ICONVIEW_AddBitmapItem(hwin, &bmtime, "");
ICONVIEW_SetBkColor(hwin, ICONVIEW_CI_SEL, GUI_WHITE | 0x40000000);
break;
case WM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc);
NCode = pMsg->Data.v;
switch(Id)
{
case ID_ICONVIEW_0: //BUTTON_0的通知代码,控制LED1
hItem= WM_GetDialogItem(pMsg->hWin, ID_ICONVIEW_0);
switch(NCode)
{
case WM_NOTIFICATION_CLICKED:
break;
case WM_NOTIFICATION_RELEASED:
LED1=~LED1; //LED1反转
break;
case WM_NOTIFICATION_MOVED_OUT:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
case WM_NOTIFICATION_SCROLL_CHANGED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
case WM_NOTIFICATION_SEL_CHANGED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
// USER START (Optionally insert additional code for further notification handling)
// USER END
}
break;
点击图标的时候显示出白色的背景表示点击啦,但是开发板上的LED等没有现象啊,没有收到消息啊?请问这是什么原因啊? 谢谢。
|
|