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.03 seconds.

  1. Replies
    3
    Views
    209

    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?
    ...
  2. Replies
    3
    Views
    209

    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...
  3. Replies
    14
    Views
    1,239

    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...
  4. Replies
    14
    Views
    1,239

    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.
  5. Replies
    14
    Views
    1,239

    Re: Force OnMeasureItem() call on a ListBox

    Hi,


    Unfortunately, yes.

    Thank you.
  6. Replies
    14
    Views
    1,239

    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.
  7. Replies
    14
    Views
    1,239

    Re: Force OnMeasureItem() call on a ListBox

    Hi,


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

    Thank you.
  8. Replies
    14
    Views
    1,239

    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.
  9. Replies
    14
    Views
    1,239

    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...
  10. Replies
    14
    Views
    1,239

    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!!!)...
  11. Replies
    7
    Views
    523

    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.
  12. Replies
    7
    Views
    523

    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...
  13. Replies
    7
    Views
    523

    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.
  14. Replies
    7
    Views
    523

    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...
  15. Replies
    3
    Views
    464

    Re: Program crashing

    Hi, Philip,

    Thank you.
    Adding:



    else if( lhs.second > rhs.second )
    return false;
  16. Replies
    3
    Views
    464

    [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...
  17. Re: Define a comparator for std::map

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

    Thank you, Paul.
    It works.
  19. 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>...
  20. 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...
  21. Re: Define a comparator for std::map

    Anybody?

    Thank you.
  22. 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> >...
  23. Re: Define a comparator for std::map

    Hi,

    Well, std::map<> sorts its elements by the key, but isn't it possible to sort the container by value?
    std::set is not a "pair" container, and I need a container based on the "pair"...
  24. Re: Define a comparator for std::map

    Why I can't use std::map? What is the difference with the std::set?
    Thank you.
  25. Re: Define a comparator for std::map

    Apologies, for some reason I was not notified about the latest responses.

    Yes, this is what I'd like.
    I tried to implement it, but got compilation error:



    class Comparator
    {
    bool...
Results 1 to 25 of 578
Page 1 of 24 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center