CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Hi Guru. This is a simple Question.

  1. #1
    Join Date
    Aug 2001
    Posts
    60

    Hi Guru. This is a simple Question.

    I have CListView and CMyHeaderCtrl class in my app.
    CListView class has a member variable, CMyHeaderCtrl m_cMyHeaderCtrl

    From my CMyHeaderCtrl I need to know size and position of CListView.

    Please tell me how to get size and position of CListView control from CMyHeaderCtrl class.

    Thank You.

  2. #2
    Join Date
    Feb 2002
    Posts
    5,757
    Assuming the listview is a parent of the header control, one solution is GetParent(). Get a safe handle to the listview and then call GetWindowRect().

    Kuphryn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)