The information in this article applies to:
SYMPTOMSIf you create a CToolTipCtrl and call AddTool() to activate it, it will work until you display a modal dialog box. For example, if on the Help menu, you click About to display the About box, and you then click OK to dismiss it, the CToolTipCtrl will not pop up anymore. CAUSEMFC is sending a WM_DISABLEMODAL to all of the frame's descendant windows when a modal dialog box pops up. The CToolTipCtrl responds to the WM_DISABLEMODAL by sending itself a TTM_ACTIVATE with a FALSE. This disables it. However, the CToolTipCtrl doesn't reactivate itself once the frame calls EnableWindow() for its descendants. RESOLUTIONYou should have a PreTranslateMessage() function where you are calling RelayEvent(). The workaround for this problem is to call Activate(TRUE) before the call to RelayEvent(). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONThis is only a problem if you create your own CToolTipCtrl. Using EnableToolTips() does not have this problem. Sample Code to Demonstrate Problem
Additional query words: kbVC400bug kbvc400bug kbvc410bug kbvc420bug kbvc500bug kbvc600bug CToolTipCtrl DoModal
Keywords : kbMFC KbUIDesign kbVC kbVC500bug kbVC600bug |
Last Reviewed: August 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |