This Windows Mobile structure contains a notification message and codes for window-based notification. The notification's dwID is in hdr.idFrom.
The standard notification message header. hdr.idFrom contains the notification's unique identifier (dwID); hdr.code is one of the following values.
pszLink contains the link text of the choice that was selected.
fTimeout is TRUE if duration expired, FALSE if user tapped away.
pt contains the point to which the bubble points.
Toast stack left spinner clicked, D-pad left action.
Toast stack right spinner clicked, D-pad right action.
Toast D-pad action.
Indicates menu coming up, and that hMenu is in lParam.
pt contains the coordinates of the point where the user clicked.
The lParam for the notification.
A return value to pass back to the notification handler (SHNN_LINKSEL only).
Contains the link text of the choice that was selected (SHNN_LINKSEL only).
Is TRUE if the notification's timeout duration expired; FALSE if the user dismissed the notification some other way, such as by tapping elsewhere (SHNN_DISMISS only).
Contains the point to which the bubble references (SHNN_SHOW only).
WM_NOTIFY messages are sent to the window registered as the sink window when the notification was added. The lParam of the WM_NOTIFY message contains a pointer to this NMSHN structure.
A message is sent to the sink window with hdr.code equal to SHNN_SHOW just before the notification handler shows the notification bubble. The member pt contains the point to which the stem of the notification bubble references. The sink window can return 0 from the window procedure to tell the notification handler not to display the notification bubble. Otherwise, it should return 1.
A message is sent to the sink window with hdr.code equal to SHNN_LINKSEL when a link is tapped in the notification bubble (that is not of the form <A HREF="cmd:#"></A>). For this message, pszLink contains a pointer to the link text for the selected link. The sink window can specify a return value by placing it into dwReturn and returning 1 from the message processing. Otherwise, it should just return 0 and the default return value will be used. This is used to prevent the notification handler from removing the notification after the link is selected; set dwReturn to IDCANCEL to do this.
A message is sent to the sink window with hdr.code equal to SHNN_DISMISS when the bubble goes away. The fTimeout member is equal to TRUE if the notification bubble's timeout duration expired, and FALSE if it is going away for some other reason, such as the user link selection or tapping elsewhere.