Professional Documents
Culture Documents
RunAppWizard To Create An SDI Application
RunAppWizard To Create An SDI Application
& Use the resource editor to edit the application's main menu as follows
3. Use the resource editor to update the application's toolbar-Edit the
IDR_MAINFRAME toolbar resource
4. Give the ID to each Button
5. USE ClassWizard to add command and update command UI messages for
ID_CIRCLE,ID_SQUARE &ID_PATTERN
6. In the file ex14aView.h,
private:
CRect m_rect;
BOOL m_bCircle;
BOOL m_bPattern;
7. void CEx14aView::OnDrawCircle()
{
m_bCircle = TRUE;
m_rect += CPoint(25, 25);
InvalidateRect(m_rect); }
8. void CEx14aView::OnDrawSquare()
{ m_bCircle = FALSE;
• The static indicators array that AppWizard generates in the MainFrm.cpp file defines the
panes for the application's status bar.
• The constant ID_SEPARATOR identifies a message line pane;
• the other constants are string resource IDs that identify indicator panes
• InMainframe.h
void Onleft(CCmdUI* j);