INFO: CWnd::OnCommand() Parameters Documented Incorrectly (122219)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Professional Edition 2.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q122219 SUMMARY
The online help and the "Class Library Reference" incorrectly describe the
CWnd::OnCommand() wParam and lParam as follows:
In Visual C++ 2.0
wParam Identifies the command ID of the menu item or control.
lParam The low-order word of lParam identifies the control that sends
the message if the message is from a control. Otherwise the
low-order word is 0. The high-order word of lParam specifies
the notification message if the message is from a control. If
the message is from an accelerator, the high-order word is 1.
If the message is from a menu, the high-order word is 0.
In Visual C++ 5.0
wParam The low-order word of wParam identifies the command ID of the menu
item or control. The high-order word of wParam specifies the notification
message if the message is from a control. If the message is from an
accelerator, the high-order word is 1. If the message is from a menu, the
high-order word is 0.
REFERENCES
For additional information concerning this issue, please consult the
following topics in the Online Help: "WM_COMMAND" and "MFC: Porting Tips".
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbBug kbdocerr kbdocfix KbUIDesign KB122219 |
---|
|