Skip to content
⌘ NSIS Forum Archive

Centering Custom Page SubHeader text

3 posts

Pawel#

Centering Custom Page SubHeader text

Hi,
Could someone tell me why this is not working?
I am trying to center the subheader text of custom page.
Here is the code:
Function SomeCustomPage
!insertmacro MUI_HEADER_TEXT "Title" "Subtitle"
System::Call "user32::GetWindowLong(i $mui.Header.SubText, i ${GWL_EXSTYLE}) i .r0"
System::Call "user32::SetWindowLong(i $mui.Header.SubText, i ${GWL_EXSTYLE}, i $0|${SS_CENTER})"    
...
Function body...
...
FunctionEnd 
"Subtitle" should be centered... It is not... Any idea?
-Pawel