Автор
Viktor1703
AutoIT Гуру
- Сообщения
- 1,535
- Репутация
- 413
Вот так?
Можно ещё с тёмной тенью сделать
А вообще, я думал такие данные будут в самом файле скина хранится
Код:
$hBrush = _GDIPlus_BrushCreateSolid(0xFFFFFFFF)
$hFormat = _GDIPlus_StringFormatCreate()
$hFamily = _GDIPlus_FontFamilyCreate("Arial")
$hFont = _GDIPlus_FontCreate($hFamily, 10, 0)
$tLayout = _GDIPlus_RectFCreate(24, 5, 0, 0)
$aInfo = _GDIPlus_GraphicsMeasureString($hGraphic, "Window title", $hFont, $tLayout, $hFormat)
_GDIPlus_GraphicsSetTextRenderingHint($hGraphic, 3)
_GDIPlus_GraphicsDrawStringEx($hGraphic, "Window title", $hFont, $aInfo[0], $hFormat, $hBrush)
_GDIPlus_FontDispose($hFont)
_GDIPlus_FontFamilyDispose($hFamily)
_GDIPlus_StringFormatDispose($hFormat)
_GDIPlus_BrushDispose($hBrush)
Можно ещё с тёмной тенью сделать
Код:
; Пишем заголовок окна --------------------------------------------
$hBrush = _GDIPlus_BrushCreateSolid(0xFF000000)
$hFormat = _GDIPlus_StringFormatCreate()
$hFamily = _GDIPlus_FontFamilyCreate("Arial")
$hFont = _GDIPlus_FontCreate($hFamily, 10, 0)
$tLayout = _GDIPlus_RectFCreate(25, 6, 0, 0)
$aInfo = _GDIPlus_GraphicsMeasureString($hGraphic, "Window title", $hFont, $tLayout, $hFormat)
_GDIPlus_GraphicsDrawStringEx($hGraphic, "Window title", $hFont, $aInfo[0], $hFormat, $hBrush)
$aInfo = _GDIPlus_GraphicsMeasureString($hGraphic, "Window title", $hFont, $tLayout, $hFormat)
DllStructSetData($aInfo[0], 1, 24)
DllStructSetData($aInfo[0], 2, 5)
$hBrush = _GDIPlus_BrushCreateSolid(0xFFFEFEFE)
_GDIPlus_GraphicsDrawStringEx($hGraphic, "Window title", $hFont, $aInfo[0], $hFormat, $hBrush)
_GDIPlus_FontDispose($hFont)
_GDIPlus_FontFamilyDispose($hFamily)
_GDIPlus_StringFormatDispose($hFormat)
_GDIPlus_BrushDispose($hBrush)
А вообще, я думал такие данные будут в самом файле скина хранится