获得状态栏与工具栏指针

 

//呵呵,这些在实际运用中都是经常用到的,为了简单明了,及为了以后用到时,无处可寻,简单记录一下!...

CStatusBar * pStatusBar=(CStatusBar *)AfxGetMainWnd()->GetDescendantWindow(AFX_IDW_STATUS_BAR);

CToolBar * pToolBar=(CtoolBar *)AfxGetMainWnd()->GetDescendantWindow(AFX_IDW_TOOLBAR);

posted @ 2011-11-13 10:09  氺〤魚Oo。  阅读(93)  评论(0编辑  收藏  举报