why my menu items always are disabled?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I create a CWnd object on a view. I process event or command in the CWnd object. But i found that all menu commands that processed in the object are disabled. Could you help me? Thank you very much.
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 asafx\_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.