The information in this article applies to:
SYMPTOMSThe text in a statusbar pane of a MDI application may disappear when a CMDIChildWnd window is open. This occurs if the Pane ID is 59142 (0xE706) and the Update UI handler is in the CMainFrame. CAUSE
The ID 59142 is used internally in MFC as the ID for ID_INDICATOR_KANA.
CFrameWnd has a default Update UI handler for this ID, and can replace user-
defined behavior by intercepting UPDATE_COMMAND_UI messages before they are
routed to the user-defined Update UI handler.
When no CMDIChildWnd windows are open the pane is updated according to the Update UI handler in the CMainFrame class. The framework will not find the standard handler in the CFrameWnd class since it searches the derived class message maps before the base class message maps. RESOLUTIONThe problem can be overcome by changing the ID of the pane, or by deriving a class from CMDIChildWnd and putting a custom Update UI handler for the pane there. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONID_INDICATOR_KANA is used to display the state of the KANA lock key (present on Japanese systems). The handler checks for the key and enables/ disables the pane depending on the state of the key. On non-Japanese versions this key is always unlocked. Additional query words: 3.0 3.1 3.2 CStatusBar
Keywords : kbcode kbprg kbMFC KbUIDesign kbVC kbVC200 kbVC210 kbVC220 kbVC400 kbVC410 kbVC420 kbVC500 kbVC600 |
Last Reviewed: July 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |