need help in making toolbar using MFC
<p>i added this in my header file</p>

<pre><code>CToolBar myBar; 
public: 
int OnCreate(LPCREATESTRUCT lpCreateStruct); 
void OnToolBarButton1(); 
void OnToolBarButton2();
</code></pre>

<p>and i added this in .cpp file</p>

<pre><code>BEGIN_MESSAGE_MAP(CtoolbarfDlg, CDialog) 
    ON_WM_SYSCOMMAND() 
    ON_WM_PAINT() 
    ON_WM_QUERYDRAGICON() 
    ON_WM_CREATE() 
    ON_COMMAND(IDC_TBBUTTON1,OnToolBarButton1) 
    ON_COMMAND(IDC_TBBUTTON2,OnToolBarButton2)   
    //}}AFX_MSG_MAP 
END_MESSAGE_MAP() 

void CtoolbarfDlg::OnToolBarButton1() 
{ 
} 
void CtoolbarfDlg::OnToolBarButton2() 
{ 
} 
int CtoolbarfDlg::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{ 
   if (CDialog::OnCreate(lpCreateStruct) == -1) 
       return -1; 

   if (!myBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP 
          | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC)) 
   { 
        TRACE0("Failed to create toolbar"); 
        return -1; // fail to create 
   } 

     myBar.LoadToolBar(IDR_TOOLBAR1); 
     myBar.EnableDocking(CBRS_ALIGN_ANY); 
     EnableDocking(CBRS_ALIGN_ANY); 
     DockControlBar(&amp;myBar); 
}
</code></pre>

<p>i got these errors :( 
error C3861: 'EnableDocking': identifier not found 
error C3861: 'DockControlBar': identifier not found</p>
