在vc6中如何使某个状态栏的按钮使能和失效

 1.h 
 2afx_msg void OnUpdateButtonStatus(CCmdUI* pCmdUI); 
 3
 4.cpp 
 5
 6BEGIN_MESSAGE_MAP(xxxx, xxxx) 
 7//{{AFX_MSG_MAP(CMainFrame) 
 8// 
 9ON_UPDATE_COMMAND_UI(MY_ID, OnUpdateButtonStatus) 
10//}}AFX_MSG_MAP 
11END_MESSAGE_MAP() 
12
13void xxxx::OnUpdateButtonStatus(CCmdUI* pCmdUI) 
14
15if (
16
17pCmdUI->Enable(FALSE); 
18}
 
19}

20
原文地址:https://www.cnblogs.com/strinkbug/p/684215.html