PRB: MFC Property Sheets Close When Using Transcriber for Pocket PC (304290)
The information in this article applies to:
- Microsoft eMbedded Visual C++, Version:4.0
- Microsoft Windows CE for the Pocket PC
This article was previously published under Q304290 SYMPTOMS
When you are using Microsoft Transcriber on a Pocket PC, a Microsoft Foundation Classes (MFC)-implemented property sheet dialog box disappears abruptly when you lift the stylus from the touch screen.
CAUSE
Modal property sheet dialog boxes in MFC are implemented through the use of a modeless dialog box and continual checking whether the active property page is NULL through the use of the PSM_GETCURRENTPAGEHWND message in the ContinueModal method. As soon as this message returns NULL, MFC assumes the user has clicked the OK button, and MFC closes the property sheets by returning FALSE from ContinueModal. However, lifting the stylus from the screen when using Microsoft Transcriber immediately causes the PSM_GETCURRENTPAGEHWND to return NULL.
RESOLUTION
To work around the problem override the ContinueModal method for the CPropertySheet-derived class. Instead of checking if the active page window handle has become NULL, check a custom implemented flag. The flag can be set by the OnOK method of the first PropertyPage. Clear this flag during the construction of the CPropertySheet-derived class.
REFERENCES
For more information on Microsoft Transcriber, see the Mobile Devices Pocket PC Web page:
For more information about property sheets and MFC, see "CPropertySheet" in the eMbedded Visual Tools 3.0 Help or on MSDN Online:
Modification Type: | Minor | Last Reviewed: | 7/27/2004 |
---|
Keywords: | kbprb KB304290 |
---|
|