The information in this article applies to:
SYMPTOMSWM_COMMAND|IDOK errors are received while editing labels in a TreeView control. CAUSE
While editing labels in a TreeView control, the edit control created by the
TreeView control can, and usually does, have an identifier of 1. This
identifier is the same as IDOK. This can cause the parent window or dialog
box to receive WM_COMMAND messages with an identifier of 1. Then the
TreeView control passes on the EN_UPDATE and EN_CHANGE notifications from
the edit control to the TreeView's parent.
RESOLUTION
Avoid using command and control identifiers with an identifier of 1 (IDOK).
To be safe, the application should not use any identifiers less than 100
when used in conjunction with a TreeView control.
STATUSThis behavior is by design. Additional query words:
Keywords : kbCtrl kbNTOS351 kbNTOS400 kbTreeView kbGrpUser kbWinOS95 kbWinOS98 |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |