Archive: Can i change my fonts and my text ?


Can i change my fonts and my text ?
case 1 : i can change my text by command caption but i don't change my fonts
case 2 and 3 : i don't know my font and my text. can you help me ?



!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
OutFile "test.exe"

Page Directory _pre _show _post

var dialog
var hwnd
var null

Function _pre

FunctionEnd

Function _show
SendMessage $HWNDPARENT ${WM_SETTEXT} 0 "STR:Changing the titlebar text..."
CreateFont $1 "Arial" 9 800 /ITALIC
SendMessage $HWNDPARENT ${WM_SETFONT} $1 1 ; Nope. Can't change titlebar font style.

FindWindow $R0 "#32770" "" $HWNDPARENT
GetDlgItem $R1 $R0 0x3EE
SendMessage $R1 ${WM_SETTEXT} 0 "STR:Changing a control's text..."
SendMessage $R1 ${WM_SETFONT} $1 1 ; But dialog controls you can...
FunctionEnd

Function _post
FunctionEnd

Section ""
SectionEnd