Jump to content

GUICtrlCreateIcon how is possible eliminate icon ?


Recommended Posts

  • Moderators

As usual, you have been around this forum far too long to expect that anyone can solve your problem for you when you post two lines of code. This works just fine, so it is obviously something incorrect in your (unshared) code.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Local $hGUI = GUICreate("Test", 300, 200)
Local $sIcon = GUICtrlCreateIcon("shell32.dll", 10, 20, 20)
Local $btnGo = GUICtrlCreateButton("go", 10, 170, 40, 25)

GUISetState(@SW_SHOW, $hGUI)


    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
            Case $btnGo
                GUICtrlSetState($sIcon, (GUICtrlGetState($sIcon) = $GUI_SHOW + $GUI_ENABLE) ? $GUI_HIDE : $GUI_SHOW)


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...