CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
119
A.7.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.
HidDeviceQuery
Removal()
Protected
This method readies the HID device for removal by making sure
the
handle is closed
HidDeviceRemoval()
Protected This method removes the HID device
Table A-12. 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 OnTrayNotifica-
tion for messages targeting the system tray icon or OnTaskbarCreated
if the system tray is being restarted
Table A-11. CHidManagerClass Methods
(continued)
Method
Type
Description