LPNMTTDISPINFO TTtext;
Example:
case WM_NOTIFY:
TTtext = (LPNMTTDISPINFO)lParam;
if(TTtext->hdr.code==TTN_GETDISPINFO)
switch(TTtext->hdr.idFrom){
case CM_RED_CIRCLE:
TTtext->lpszText = "Red Circle";
break;
case CM_GREEN_SQUARE:
TTtext->lpszText = "Green Square";
break;
case CM_BLUE_CIRCLE:
TTtext->lpszText = "Blue Circle";
break;
case CM_YELLOW_SQUARE:
TTtext->lpszText = "Yellow Square";
break;
}
break;
No comments:
Post a Comment