Jump to content
Sign in to follow this  

Icon Size

Recommended Posts


I don't have a problem displaying 32x32 icons, but cannot get a 16x16 to display. I have created an icon that is 32x32, 16x16 and a combined file and cannot get the small display. I was trying to emulate the Office toolbar. This is the code I was using.

#include "GUIConstants.au3"
GuiCreate("",350,32,0,0 ,$WS_POPUPWINDOW,$WS_EX_TOPMOST)
$Icon01 = GUICtrlCreateIcon("C:\Downloads\cboxs.ico",-1,0,0) 
;$RC = GUICtrlSetImage ( $Icon01,"C:\Downloads\cboxs.ico",2,0)

While 1
   $Msg = GUIGetMsg()
      Case $Msg = -3; Close window or ESC
      Case $mSG = 3
         MsgBox(4096,'debug:' , '$Msg:' & $Msg);### Debug MSGBOX 
If $Msg = -3 Then Exit

Share this post

Link to post
Share on other sites

can you attach your cboxs.ico so I can reproduce?

Thanks :">

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.