1

解决方案 »

  1.   

    CWnd* wnd = GetDlgItem(nID);
    CRect rect;
    wnd->GetWindowRect(&rect);
      

  2.   

    CWnd* wnd = GetDlgItem(nID);
    CRect rect;
    wnd->GetWindowRect(&rect);
    int Width=rect.Width();
    int Height=rect.Height();
      

  3.   

    我用CFormView::Create() 创建一个客户区
    在这个函数中的第四个参数是客户区的大小,我需要在创建时知道他的大小,在这时用
    GetWindowRect 不行
      

  4.   

    程序运行在在
    wnd->GetWindowRect(&rect);
    出错
    runtime error