界面上有两个 picture 控件,其中一个的id 是idc_draw0 ;
另一个是IDC_DRAW1;
下面这段代码只获得其中一个picture
                   CWnd *pWnd=GetDlgItem(IDC_DRAW);
CRect cRect;
pWnd->GetClientRect(&cRect);
CDC *pDc=pWnd->GetDC();请问怎么读取另一个picture????

解决方案 »

  1.   

    不是一样读吗不过GetDlgItem(IDC_DRAW);这句好象不对
      

  2.   

    CWnd *pWnd0=GetDlgItem(IDC_DRAW0);
    CWnd *pWnd1=GetDlgItem(IDC_DRAW1);
      

  3.   

    获取其中的一个,GetDlgItem(IDC_DRAW);要么是idc_draw0 ,否则IDC_DRAW1,要指明。
      

  4.   

    谢谢拉,上面的各位啊
    这个是什么意思啊?
                       CRect cRect;
    pWnd->GetClientRect(&cRect);
                     CDC *pDc=pWnd->GetDC();