Announcement

Collapse
No announcement yet.

Where does minimize icon come from?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Where does minimize icon come from?

    I'm getting an icon to show in the taskbar that is not called in my test application. This very simple code creates an icon on the tray other than the default "blank" icon:

    Code:
    #Compile Exe
    Function PBMain()
        Dim hDlg As Dword
        Dialog New Pixels, 0, "",,, 500,250, %WS_OverlappedWindow , To hDlg
        Dialog Show Modal hdlg
    End Function
    Here's what I get. You can see the icon on the dialog is blank, but the icon on the taskbar is something else - an icon that once was in the folder where my .bas file is located, but is no longer there and is not referenced in any way in my program.



    Do anyone know why that happens?

    I can use Dialog Set Icon to call out a specific icon and everything works as it should. But I wouldn't think the code above should have an icon to use in the taskbar.

    Thoughts?

  • #2
    an icon that once was in the folder where my .bas file is located, but is no longer there and is not referenced in any way in my program.
    Hmmm... Stuff showing up in a subdir that has attributes of a file previously deleted?

    Here's a previous thread on a different topic, but dealing with similar-sounding symptoms:
    http://www.powerbasic.com/support/pb...ad.php?t=39340
    Maybe the same, maybe not. I can't tell. But it sure seems familiar!


    Might want to check the MSDN:

    MSDN > MSDN Library > Win32 and COM Development > Windows Driver Kit > Device and Driver Technologies > Installable File System > Reference > File System Runtime Library Routines

    and piece together the workings of the "file tunneling" feature...

    For example, under "File System Runtime Library Routines", read:
    FsRtlFindInTunnelCache
    FsRtlDeleteTunnelCache

    I found a workaround, so I did not master this situation this time around. But I have it on my list of things to learn "someday".

    Hope this helps!
    -jhm

    Comment


    • #3
      Flush the Windows' icon cache (Google it or use TweakUI), if the icon was referenced by Explorer in connection with the app it will still be in the cache. Alternately, put an icon in your app's resource and/or use DIALOG SET ICON. This will force Windows to use the new icon.
      kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

      Comment


      • #4
        I get this a lot with message boxes. Windows glitch. Happens differently depending on if message box is called from main app or thread too.
        sigpic
        Mobile Solutions
        Sys Analyst and Development

        Comment

        Working...
        X