Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 10, 2016, 02:22:47 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Remove arrow overlay on Listview icon display  (Read 591 times)

TWmailrec

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
    • View Profile
    • Donate to Member
Remove arrow overlay on Listview icon display
« on: August 10, 2016, 02:09:46 PM »
In order to unclutter pinned apps on the taskbar, I coded a simple and useful little
program with Autohotkey v. 1.0.48.05, that uses a Listview.
Can anyone suggest a coding MOD to display Listview icons that are NOT obscured by the
shortcut arrow overlay when .Lnk files are displayed.
(I have tried to remove the arrow overlay using "XdN Tweaker.exe" or
"Ultimate Windows Tweaker.exe" but these only work on Desktop icons).

I used the normal coding as given in Autohotkey Help (2003-2009 Chris Mallett).
There must surely be a way as pinned programs and links in Start Menu do not show
these arrows.
Does anyone know how this can be done??

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,290
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Remove arrow overlay on Listview icon display
« Reply #1 on: August 10, 2016, 02:32:29 PM »
I would experiment with FileGetShortcut function to get the exe file path from the Target line in the shortcut and load the icon from the exe file directly.

TWmailrec

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
    • View Profile
    • Donate to Member
Re: Remove arrow overlay on Listview icon display
« Reply #2 on: August 10, 2016, 05:00:32 PM »
I did have a try at substituting actual filename using FileGetShortcut, but I got left with the same icon throughout the list.
maybe I did it wrong?
I can have another go.
I was thinking that a MOD of line:
        if not DllCall("Shell32\SHGetFileInfoA", "str", FileName, "uint", 0, "str", sfi, "uint", sfi_size, "uint", 0x101)  ; 0x101 is SHGFI_ICON+SHGFI_SMALLICON

might be required.

TWmailrec

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
    • View Profile
    • Donate to Member
Re: Remove arrow overlay on Listview icon display
« Reply #3 on: August 10, 2016, 05:19:44 PM »
I tried substituting Filename again - same result. Then I noticed the missing %%.
Works beautifully now.

Many thanks for suggesting 2nd attempt!

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,290
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Remove arrow overlay on Listview icon display
« Reply #4 on: August 11, 2016, 07:26:42 AM »
Yeah the percent wrappers burn me all the time.  :)
Glad you got it working.