Sign in to follow this  
Followers 0
condoman

Icon Size

3 posts in this topic

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)

GUISetState(@SW_SHOW)
While 1
   $Msg = GUIGetMsg()
   Select
      Case $Msg = -3; Close window or ESC
         ExitLoop
      Case $mSG = 3
         MsgBox(4096,'debug:' , '$Msg:' & $Msg);### Debug MSGBOX 
         ExitLoop
   EndSelect      
Wend
If $Msg = -3 Then Exit
Exit;eof

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  
Followers 0