CWnd::OnCommand

This method is called by the framework when the user selects an item from a menu, when a child control sends a notification message, or when an accelerator keystroke is translated.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL OnCommand( WPARAM wParam, LPARAM lParam );

See Also

CCmdTarget::OnCmdMsg