Cypress CY4672 manual CWirelessUSBStatusPropertyPage Class Methods

Models: CY4672

1 126
Download 126 pages 13.98 Kb
Page 117
Image 117

Software Guide

9.2.3.3CWirelessUSBStatusPropertyPage 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.

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

Public

This method is called when the Disable Warning Messages check box

USBDisableWarning

 

is changed. Base on the check box value, it either disables or enables

 

battery and signal strength warning messages for the specific HID

Message()

 

 

device. The updated value is then stored in the device-specific config-

 

 

 

 

uration information for the HID device.

9.2.3.4CWirelessUSBStatusPropertySheet 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-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.

CY4672 Reference Design Guide, Document # 001-16968 Revision **

117

[+] Feedback

Page 117
Image 117
Cypress CY4672 manual CWirelessUSBStatusPropertyPage Class Methods, CWirelessUSBStatusPropertySheet Class Methods