Cypress CY4672 Espresso Maker User Manual


 
CY4672 Reference Design Guide, Document # 001-16968 Revision ** 117
Software Guide
9.2.3.3 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.
9.2.3.4 CWirelessUSBStatusPropertySheet Class Methods
The CWirelessUSBStatusPropertySheet class is the Visual C++ generated file that implements the
WirelessUSB Status Property Sheet, which generates a unique WirelessUSB Device Status Prop-
erty Page for each WirelessUSB device enumerated.
Table 9-6. 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 to 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 representa-
tion of the number with commas added.
OnTimer() Public This method updates the HID device values displayed on the status
page then restarts the timer; also, it occasionally requests an update
in the battery level, currently set to 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 then stored in the device-specific config-
uration information for the HID device.
Table 9-7. CWirelessUSBStatusPropertySheet Methods
Method Type Description
OnInitDialog() Public This method initializes the wireless status property sheet and adds a
property page for each HID device in the list.
OnBnClickedClose() Public This method ends the dialog box if the user selects the Close button.
[+] Feedback