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

Thread: combobox::getitemtext

  1. #1

    combobox::getitemtext

    combobox has no getitemtext function?
    i must save its copy as item's data?
    t!


  2. #2
    Join Date
    Sep 2001
    Location
    Bristol, England
    Posts
    321

    Re: combobox::getitemtext

    It does have GetLBText and GetLBTextLen


  3. #3
    Join Date
    Mar 2000
    Location
    Bangalore,India
    Posts
    776

    Re: combobox::getitemtext

    use one of the following:
    int GetLBText( int nIndex, LPTSTR lpszText ) const;

    void GetLBText( int nIndex, CString& rString ) const;


    Regards
    SKP

    Be sure to rate answers if it helped, to encourage them.

  4. #4

    Re: combobox::getitemtext

    can be any reason in DrawItem returns nonsense?
    (btw. now i found mfc ignores later changes of CBS_OWNERDRAWFIXED, still calls my DrawItem)


  5. #5

    Re: combobox::getitemtext

    and not in draw item only
    till i do not use my ccombobox derived class with own ownerdraw it works file


  6. #6

    Re: combobox::getitemtext

    resp. better to be able get item's text depends on ownerdrawfixed flag only
    is it normal?


  7. #7

    Re: combobox::getitemtext - found

    problem found
    with owner draw must have hasstrings too
    fine day
    t!


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

This is a CodeGuru survey question.


Featured


HTML5 Development Center