2011-05-05 26 views

回答

5
!include nsDialogs.nsh 
var Label 
page custom pre 
function pre 
nsDialogs::Create 1018 

${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:" 
Pop $Label 
CreateFont $0 "Arial" 18 
SendMessage $Label ${WM_SETFONT} $0 1 

nsDialogs::Show 
functionend 
+0

非常感謝主席先生,但也請給我解釋一下它的工作:的CreateFont $ 0「宋體」 18 ----這使字體詳細的變量$ 0時,對嗎? – sqlchild 2011-05-05 12:17:40

+1

@sqlchild:是的,它將字體句柄(win32中的HFONT)放入$ 0 – Anders 2011-05-05 12:34:34

+0

之後,這是幹什麼的:SendMessage $ Label $ {WM_SETFONT} $ 0 1 ---'1'最後是幹什麼的? – sqlchild 2011-05-05 12:36:35

相關問題