In the message map of your CWnd object you need to have an entry for each of the ID_* in your menu. For example,
ON\_COMMAND(ID\_COLLAPSE\_ALL, OnCollapseAll)
. The function OnCollapseAll() is prototyped as
afx\_msg void OnCollapseAll();
HPS HwndSpy - GUI developer's aid to visually locate and inspect windows. For the month of August only, use coupon code CP-81239 for 30% off.