114 CY4672 Reference Design Guide, Document # 001-16968 Revision **
Software Guide
9.2.2 System Tray Module
The System Tray module defines the CCySysTray class which provides the interface to the system
tray for the application. This module is not expected to require any modification, however all source
code is provided for reference.
9.2.2.1 CCySysTray Class Methods
Table 9-3. CCySysTray Methods
Method Type Description
Create() Public This method creates an invisible window and sets up the system tray
icon (if needed).
SetIcon() Public This method sets (or replaces) the icon displayed on the system tray.
RemoveIcon() Public This method removes the icon from the system tray.
SetToolTip() Public This method sets the tool tip to be displayed on the system tray.
SetMenuItem() Public This method sets the default menu item executed when the icon is
double-clicked on the system tray.
IsHidden() Public This method is used to determine if the system tray icon is hidden.
ShowBalloonTip() Public This method displays a balloon style tip message (only supported on
W2K or higher).
OnTrayNotification() Public This method processes events that occur to the icon in the system
tray.
OnTaskbarCreated() Protected This method is called when the system tray is being restarted (for
example, if Explorer crashes).
WindowProc() Protected This method overrides the default WindowProc to call OnTrayNotifi-
cation for messages targeting the system tray icon or OnTaskbarCre-
ated if the system tray is being restarted.
[+] Feedback