← BYTES
Visual C++/MFC·Starter·Ref: 25.1.16

What does ON_COMMAND in a message map connect?

Have a question about this video? Mention reference 25.1.16 when you contact us.

a.A menu item or toolbar button's command ID to a handler member function
b.A keyboard shortcut directly to a dialog box
c.A COM interface to a class
d.A database row to a view
ON_COMMAND(id, memberFxn) routes a WM_COMMAND notification carrying that specific command ID (from a menu item or toolbar button) to the given handler.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES25116#VisualCMFC