Here a workaround (fast hack):
#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
_GDIPlus_Startup()
Global Const $STM_SETIMAGE = 0x0172, $IMAGE_BITMAP = 0
$hGUI = GUICreate("TEST", 200, 100)
$idLabel = GUICtrlCreateLabel("LABEL", 5, 5, 80, 20)
GUICtrlSetBkColor(-1, 0xb0c4de)
GUICtrlSetColor(-1, 0x483d8d)
ConsoleWrite(_GDIPlus_CreateCtrlBorder($hGUI, $idLabel, 0xFF5D233E) & @LF)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
_GDIPlus_Shutdown()
GUIDelete()
Exit
Case $idLabel
MsgBox(0, "Test", "Label was clicked")
EndSwitch
WEnd
Func _GDIPlus_CreateCtrlBorder($HWnd, $idCtrl, $iColor, $iPenSize = 1, $bETCHED = False) ;coded by UEZ build 2013-01-15
If Not Int($iColor) Then Return SetError(1, 0, 0)
Local $aPos = ControlGetPos($HWnd, "", $idCtrl)
If @error Then Return SetError(2, 0, 0)
Local $hPen = _GDIPlus_PenCreate(0, $iPenSize)
Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $aPos[2] + 2, "int", $aPos[3] + 2, "int", 0, "int", 0x0026200A, "ptr", 0, "int*", 0)
Local $hCtxt = _GDIPlus_ImageGetGraphicsContext($aResult[6]), $iD = 1
If $bETCHED Then
$iD = -Floor($iPenSize / 2 - 1 * ($iPenSize = 1))
_GDIPlus_PenSetColor($hPen, 0xFFFEFEFE)
_GDIPlus_PenSetWidth($hPen, $iPenSize * 2)
_GDIPlus_GraphicsDrawRect($hCtxt, $iPenSize, $iPenSize, $aPos[2] - $iPenSize + 1, $aPos[3] - $iPenSize + 1, $hPen)
EndIf
_GDIPlus_PenSetColor($hPen, $iColor)
_GDIPlus_PenSetWidth($hPen, $iPenSize)
_GDIPlus_GraphicsDrawRect($hCtxt, Int($iPenSize / 2), Int($iPenSize / 2), $aPos[2] - $iPenSize + $iD + (Not ($bETCHED > 0)), $aPos[3] - $iPenSize + $iD + (Not ($bETCHED > 0)), $hPen)
Local $iPic = GUICtrlCreatePic("", $aPos[0] - 1, $aPos[1] - 1, $aPos[2] + 1, $aPos[3] + 1)
GUICtrlSetState(-1, $GUI_DISABLE)
Local $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($aResult[6])
$hB = GUICtrlSendMsg($iPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBitmap)
If $hB Then _WinAPI_DeleteObject($hB)
_GDIPlus_PenDispose($hPen)
_GDIPlus_BitmapDispose($aResult[6])
_WinAPI_DeleteObject($hHBitmap)
Return 1
EndFunc ;==>_GDIPlus_CreateCtrlBorder
Br,
UEZ