Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: OneEyeMan

Page 1 of 24 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: What is the correct behavior of list control?

    Hi, Victor,


    I'm not asking to test it - I'm asking what should be the most logical outcome of such algorythm.

    Thank you.'
  2. What is the correct behavior of list control?

    Hi, ALL,
    There is a list control in Windows.
    When I create a list control I can assign an image list to it with the ListView_SetImageList().
    By default, when just created there is no image list...
  3. Replies
    3
    Views
    342

    Why MSDN is not documenting everything?

    Hi, ALL,
    This link explains everything, but it does not tell whether this message is sent for both single- and multiple selection modes or just with single-selection.

    I mean this is MSDN -...
  4. Replies
    3
    Views
    277

    Re: ImageList question

    Hi,

    This is what I'm asking.(last 2 sentenses).
    Which means that the mage list will not be resized...

    Is there a way to get a size of the image list image and not an individual images in it?
    ...
  5. Replies
    3
    Views
    277

    ImageList question

    Hi, ALL,
    An ImageList_Create() function (see here) takes 2 parameters: cx and cy which are the width and height of each image.

    Everything is good if I know in advance what size my images will...
  6. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Hi,


    The point is that I'm not sure if CDC::GetTextExtent and ::GetTextExtentPoint32() are the same thing, i.e. one is a direct wrapper around the other. ;-)



    Well, I don't. In the list box...
  7. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Hi,


    You are talking MFC, I speak WinAPI ;-)
    Did I reference a proper function above? Or maybe I can use GetTextMetrics()?

    Thank you.
  8. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Hi,


    Unfortunately, yes.

    Thank you.
  9. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Also, maybe there is an easier API - GetTextMetrics().
    But MSDN does not say what it returns - points or pixels... :(

    Thank you.


    This is what I'm referring to.
  10. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Hi,


    OK. But is it the right WinAPI call I refer to?

    Thank you.
  11. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Hi, Victor,


    The closest I see is this. But it says:



    I just need the height of the font. I don't really care about the string.

    Thank you.
  12. Replies
    14
    Views
    1,469

    Re: Force OnMeasureItem() call on a ListBox

    Hi, Victor,


    I presume this is MFC wrapper around this?
    On that link it says:



    So if I set the font of 20 points how do I calculate the proper height of the item? Or just use the bold font...
  13. Replies
    14
    Views
    1,469

    Force OnMeasureItem() call on a ListBox

    Hi, ALL,
    I have a following situation.
    1. I know that OnMeasureItem() is called only once - when the control is created - according to MSDN.
    2. I'm trying to create a ListBox (not a ListCtrl!!!)...
  14. Replies
    7
    Views
    591

    Re: Is this possible to write like this?

    Hi, D Drmmr,
    Thank you for the suggestion.
    I will wait for Paul's response and then see what is the best option.

    I hope you don't mind this. ;-)

    Thank you.
  15. Replies
    7
    Views
    591

    Re: Is this possible to write like this?

    Hi, Paul,
    Sorry for the late reply. For some reason I didn't get a notification about you post, even though I came to the forum to check zerver' reply.

    Let me give you and idea of what I'm...
  16. Replies
    7
    Views
    591

    Re: Is this possible to write like this?

    Hi, razzle,

    Can I ask you for an example for a bi-directional iterator?
    Never used it before.

    Thank you.
  17. Replies
    7
    Views
    591

    Is this possible to write like this?

    Hi, ALL,
    I'm trying to simplify the writing of the for loop on the std::set.

    This is what I'd like to have:



    for( std::map<std::string,std::set<std::pair<std::string, double> > >::iterator...
  18. Replies
    3
    Views
    506

    Re: Program crashing

    Hi, Philip,

    Thank you.
    Adding:



    else if( lhs.second > rhs.second )
    return false;
  19. Replies
    3
    Views
    506

    [RESOLVED] Program crashing

    Hi, ALL,
    Since I don't know how to remove SOLVED from the thread and this is actually kind of different issue I decided to make a new thread.

    This is a continuation of this thread.

    Thank you...
  20. Re: Define a comparator for std::map

    Thank you zerver.
    If thats what needs to be done...
  21. Re: Define a comparator for std::map

    Thank you, Paul.
    It works.
  22. Re: Define a comparator for std::map

    Hi, guys,
    It still does not compile.
    Here's what I wrote:

    In .h file:


    class Comparator
    {
    bool operator()(const std::pair<std::string,double> &lhs, const std::pair<std::string,double>...
  23. Re: Define a comparator for std::map

    Hi, Paul,

    Why life is always more complicated than it needs to be? ;-)

    Now one more question: if I will have just one sorting in ascending order, will I have a guarantee that reverse_iterator...
  24. Re: Define a comparator for std::map

    Anybody?

    Thank you.
  25. Re: Define a comparator for std::map

    Hi,

    Well, Boost introduce an extra dependency and second map does not make much sense. ;-)





    std::map<std::string, std::set<std::pair<std::string, double>, AscendingPairComparator> >...
Results 1 to 25 of 581
Page 1 of 24 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center