InitShellManager() 是 **MFC Feature Pack(BCGControlBar 核心)** 引入的函數,隨 **Visual Studio 2008 SP1** 首次內建。VS2008 RTM 或更早版本(VC6、VS2005)不包含此函數。
CMenu、CToolBar 實作介面。在專案 stdafx.h 或 StdAfx.cpp 加入:
#include <afxShellManager.h> // VS2008 SP1 以上才有
若編譯通過,即確認環境支援。