condoman Posted December 14, 2004 Share Posted December 14, 2004 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 Link to comment Share on other sites More sharing options...
jpm Posted December 14, 2004 Share Posted December 14, 2004 can you attach your cboxs.ico so I can reproduce? Thanks :"> Link to comment Share on other sites More sharing options...
condoman Posted December 15, 2004 Author Share Posted December 15, 2004 Here it is. Thanks for looking.cbox.zip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now