关于VC++的一点问题
BOOLCMainFrame::OnCommand(WPARAMwParam,LPARAMlParam){//TODO:Addyourspecializedcodeher...
BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
int MenuCmdId=LOWORD(wParam);
CMenu2View *pView=(CMenu2View*)GetActiveView();
if(MenuCmdId>=IDM_PHONE1 && MenuCmdId<IDM_PHONE1+pView->m_strArray.GetSize())//分析哈getsize函数
{
CClientDC dc(pView);
dc.TextOut(0,0,pView->m_strArray.GetAt(MenuCmdId-IDM_PHONE1));//分析哈GETAT函数
//MessageBox("Test");
return TRUE;
}
return CFrameWnd::OnCommand(wParam, lParam);
}
最后帮我分析哈COBArray::ADD函数 展开
{
// TODO: Add your specialized code here and/or call the base class
int MenuCmdId=LOWORD(wParam);
CMenu2View *pView=(CMenu2View*)GetActiveView();
if(MenuCmdId>=IDM_PHONE1 && MenuCmdId<IDM_PHONE1+pView->m_strArray.GetSize())//分析哈getsize函数
{
CClientDC dc(pView);
dc.TextOut(0,0,pView->m_strArray.GetAt(MenuCmdId-IDM_PHONE1));//分析哈GETAT函数
//MessageBox("Test");
return TRUE;
}
return CFrameWnd::OnCommand(wParam, lParam);
}
最后帮我分析哈COBArray::ADD函数 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询