PRB: TAB Key, Mnemonics with FindText and ReplaceText DialogsLast reviewed: November 2, 1995Article ID: Q96134 |
The information in this article applies to:
SYMPTOMSWhen implementing the FindText and/or ReplaceText common dialog box, the dialog box is displayed but the TAB key and mnemonics do not work properly.
CAUSEThe FindText and ReplaceText common dialog boxes are modeless dialog boxes. Therefore, a call to IsDialogMessage must be made in the application's main message loop in order for the TAB key and mnemonics to work properly.
RESOLUTIONThis problem can be corrected by adding a call to IsDialogMessage() in the application's main message loop.
MORE INFORMATIONA typical message loop might resemble the following
while (GetMessage(&msg,NULL,NULL,NULL)) { if ( ghFFRDlg==NULL || !IsDialogMessage(ghFFRDlg, &msg) ) { TranslateMessage(&msg); DispatchMessage(&msg); } }where ghFFRDlg is a global window handle for the currently active modeless common dialog box.
|
Additional reference words: 3.10 3.50 3.51 4.00 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |