Archive: Centering Custom Page SubHeader text


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:


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})"
>...
Functionbody...
...
>FunctionEnd
>
"Subtitle" should be centered... It is not... Any idea?
-Pawel

That's not an extended style. Use GWL_STYLE.

Stu


Stu,
You are right. My mistake :P
Thanks.
-Pawel