设置CListCtrl的扩展风格有函数SetExtendStyle().那么设置Style用什么函数呢?
拜谢!

解决方案 »

  1.   

    you can use the general method to set all the style::GetWindowLong()
    ::SetWindowLong()
      

  2.   

    ::GetWindowLong()
    ::SetWindowLong()
    对!!!!!!!!!!!!
      

  3.   

    可以直接用:
    ---------------------
    CWnd::ModifyStyle
    BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );Return ValueNonzero if style was successfully modified; otherwise, 0.ParametersdwRemoveSpecifies window styles to be removed during style modification.dwAddSpecifies window styles to be added during style modification.nFlagsFlags to be passed to SetWindowPos, or zero if SetWindowPos should not be called. The default is zero. See the Res section for a list of preset flags.