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

    Common Icons and Cursors

    How can I access some of the common icons and cursors that is seen in many Windows programs? For example, how can I use the "hand" cursor that is displayed over links in IE? Or what about the "splitter" cursor that is displayed when mousing over the splitter in the Windows Explorer?
    Thank you.


  2. #2
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: Common Icons and Cursors

    Few ways to do it (I'm assuming you're asking to do it from within your program and not to find the physical files themselves):

    1. Use the Screen.MousePointer property which allows you to use the current selected system mouse icons. For example, Screen.MousePointer = vbHourGlass will set the mouse pointer on your application to hour-glass icon.

    2. Customized mouse icon
    --> set the Screen.MousePointer = 99
    --> then load the new mouse icon into the Screen.MouseIcon property
    Example:
    Screen.MousePointer = 99
    set Screen.MouseIcon = LoadPicture("myface.bmp")

    -Cool Bizs

    Good Luck,
    -Cool Bizs

  3. #3
    Join Date
    Apr 2001
    Posts
    95

    Re: Common Icons and Cursors

    Thanks for your reply. However, I was probably a bit unclear in my question. I think I want to find the physical files. From what I understand, there are .ico's and .cur's in .exe's, .dll's, .ocx's, etc... I know you can extract these from the files. First of all how do you do that? Then is there any directory or library of common windows .ico's and .cur's anywhere... such as on the Internet, on a CD, on my computer? Thanks again, though, for replying.


  4. #4
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: Common Icons and Cursors

    Actually most of the icons are on your HD itself. Just search for .ICO.

    There are some icons in:
    C:\Program Files\Microsoft Visual Studio\Common\Graphics

    To extract the images from the DLL, EXE or OCX, you'll need to use the APIs or even some free-ware/share-ware application available out there. There was a post in this forum today and the poster mentioned that he/she has the code already. The thread is:
    http://www.codeguru.com/cgi-bin/bbs/...collapsed&sb=5

    If that does not help, just search for EXTRACT ICON or just ICON on this forum and I am pretty sure you'll get the solution.

    -Cool Bizs

    Good Luck,
    -Cool Bizs

  5. #5
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Common Icons and Cursors

    To extract icons from DLLs and EXEs on your system, download Icon Hunter from

    http://www.planetsourcecode.com/xq/A...s/ShowCode.htm

    There's a gallery of common icons in

    http://www.planetsourcecode.com/xq/A...s/ShowCode.htm



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