CtrlList宽度根据对话框的大小自动调整怎么写?

解决方案 »

  1.   

    Resizerlib 是什么东东哦  :-)
      

  2.   

    CRect rc, rc1;
    GetClientRect(&rc);
    m_list1.GetWindowRect(&rc1);
    rc1.left = rc.left; rc1.right = rc.right;
    m_list1.MoveWindow(&rc1);
      

  3.   

    多谢!我也遇到这个问题。我是重新调整column宽度。
      

  4.   

    CRect rc, rc1;
    GetClientRect(&rc);
    m_list1.GetWindowRect(&rc1);
    rc1.left = rc.left; rc1.right = rc.right;
    m_list1.MoveWindow(&rc1);其中各列宽度可以用SetColumnWidth实现
      

  5.   

    把上面代码 加到WM_SIZE消息函数里去
      

  6.   

    GetDlgItem(IDC_PosList)->GetWindowRect(&rc1); 这个怎么不行呢?