Some useful DlgItem changes: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Adding new author and category links.)
 
Line 16: Line 16:


## Change branding text
## Change branding text
GetDlgItem $R0 $HWNDPARENT 1027
GetDlgItem $R0 $HWNDPARENT 1028
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"
</highlight-nsis>
</highlight-nsis>

Latest revision as of 04:28, 31 May 2009

Author: Afrow UK (talk, contrib)


Description

These are to change text on different items of your installer. They can be used to change text on the different dialogs of your installer.

Examples

## Change Cancel button text
GetDlgItem $R0 $HWNDPARENT 2
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Text"
 
## Change Back button text
GetDlgItem $R0 $HWNDPARENT 3
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Text"
 
## Change branding text
GetDlgItem $R0 $HWNDPARENT 1028
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My Branding Text"

-Stu