Infinity Symbol inside of ListView
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Infinity Symbol inside of ListView

  1. #1
    Join Date
    Dec 2001
    Posts
    391

    Question Infinity Symbol inside of ListView

    Can someone tell me how to display the "inifinity symbol" inside of a listview item. For example, i was just using Azureus (bit torrent client) and noticed that they used this symbol under its ETA column. How do i do this?

    Thanks

  2. #2
    Join Date
    Feb 2002
    Posts
    3,788

    Re: Infinity Symbol inside of ListView

    Steps:
    1. Create a Dialog based application. Put _UNICODE in Project->Settings->C/C++->General->Preprocessor definitions. Add wWinMainCRTStartup in Project->Settings->Link->Entry-point symbol. See attached jpegs.
    2. Add a CListCtrl REPORT style and an CEdit box to your dialog(use resource editor.) and add member variables of type CListCtrl/CEdit to the added controls.
    3. Create a file (in Notepad) and put there all the UNICODE characters you want to display(the character ∞ is obtained by pressing ALT and 236. Save the file with 'Unicode' Encoding (File->Save as...). For a list of all the extended characters see Asciitable. Look for the Extended ASCII Codes section).
    4. See OnInitDialog for the implemetation. The sample is attached

    It might not be(I'm sure it's not ) the best solution, but it works.
    Attached Images Attached Images   
    Attached Files Attached Files
    Last edited by Alin; July 25th, 2005 at 01:25 PM.

  3. #3
    Join Date
    Dec 2001
    Posts
    391

    Re: Infinity Symbol inside of ListView

    WOW..thanks Alin...I've rated you!!

  4. #4
    Join Date
    Feb 2002
    Posts
    3,788

    Re: Infinity Symbol inside of ListView

    you're welcome

Posting Permissions

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


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