CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2013
    Posts
    77

    win32 API corresponding to GetSubItemRect

    Please tell me Win32 API corresponding to CListCtrl::GetSubItemRect()

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: win32 API corresponding to GetSubItemRect

    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: win32 API corresponding to GetSubItemRect

    Just an aside note:
    MFC is a C++ library built over Windows API. Moreover it has available sources.
    So, each time you have this kind of problems, you can quickly do the following:

    1. Using the wizard, make a simple MFC test application, let's say a dialog-based one;
    2. write some code containing the MFC method to "research", e.g.
      Code:
         m_list.GetSubItemRect(nItem, nSubItem, LVIR_LABEL, rcSubItem);
    3. put a breakpoint in that line, then start debugging (F5);
    4. when the breakpoint is reached, just step into (F11) and see what's inside MFC.
    5. that's all; eventually you can keep that aplication for further tests and repeat steps 1 to 4.
    Last edited by ovidiucucu; August 24th, 2013 at 04:55 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured