CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
121
CWirelessUSBStatusPropertyPage Class Methods.
The CWirelessUSBStatusPropertyPage
class is the Visual C++ generated file that implements the WirelessUSB Device Status Property
Page, a unique property page is created for each WirelessUSB device enumerated.
OnStartTimer()
Public
This method starts the timer based on the hard-coded poll timer (currently set at
once every 5 seconds)
OnStopTimer()
Public
This method stops the timer
OnTimer()
Public
This method is the timer routine that is called when the timer expires,
it loops through all the HID devices in the list and updates their status
values and then restarts the timer; also it occasionally requests an
update in the battery level, currently set at once every hour
OnDestroy()
Public
This method is called when the frame window is destroyed; it stops
the timer, removes the property sheet (if displayed), and removes the
icon from the system tray
OnAppWireless
USBStatus()
Public
This method displays the wireless status page, if it is not already displayed
Table A-15. CWirelessUSBStatusPropertyPage Methods
Method
Type
Description
OnInitDialog()
Public
This method initializes the wireless status page, reads the current value of
the Disable Warning Message check box from the registry, and makes a call
to start the timer
OnDestroy()
Public
This method removes the wireless status page and stops the timer
OnStartTimer()
Public
This method starts the timer for the wireless status page based on the hard-
coded poll timer (currently set at once ever 500 ms)
OnStopTimer()
Public
This method stops the timer for the wireless status page
CommaStr()
Public
This method takes a numeric value and returns a CString representation of
the number with commas added
OnTimer()
Public
This method updates the HID device values displayed on the status page
and then restarts the timer; also it occasionally requests an update in the
battery level, currently set at once every 5 seconds while the status page is
displayed
OnBnClickedWireless
USBDisableWarning
Message()
Public
This method is called when the Disable Warning Messages check box is
changed; base on the check box value it either disables or enables battery
and signal strength warning messages for the specific HID device; the
updated value is stored in the device-specific configuration information for
the HID device
Table A-14. CMainFrame Methods
(continued)
Method
Type
Description