﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2962	GUICtrlSetImage resizes Pic control with $SS_SUNKEN style	MrCreatoR	Jos	"Reproducing example:

{{{
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$hGUI = GUICreate(""Test Script"", 300, 200)

$sImage = @AutoItExe & ""\..\Examples\GUI\mslogo.jpg""
$iPic = GUICtrlCreatePic($sImage, 20, 40, 100, 30, $SS_SUNKEN)
;$iPic = GUICtrlCreatePic($sImage, 20, 40, 100, 30, -1, $WS_EX_DLGMODALFRAME)

GUISetState(@SW_SHOW, $hGUI)

For $i = 1 To 10
    GUICtrlSetImage($iPic, $sImage)
    Sleep(100)
Next

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
}}}

the size of the pic control (with $SS_SUNKEN style or $WS_EX_DLGMODALFRAME exstyle or some other styles) changes when we use GUICtrlSetImage.
If we add $SS_CENTERIMAGE style then this will solve the issue, but i think it shouldn't happen.
"	Bug	closed	3.3.15.1	AutoIt	3.3.12.0	None	Fixed		
