System::Call DrawText problem
Hi guys,
I'm calling the DrawText function with the DT_CALCRECT flag with the following code:
${NSD_CreateLabel} $LabelLeftUu $LabelTopUu $LabelWidthUu $LabelHeightUu "Hello!"
Pop $9
System::Call '*(i,i,i,i)i.r8'
System::Call 'user32::GetClientRect(ir9,ir8)' #works fine
StrLen $4 'Hello!'
System::Call 'user32::GetDC(i.r9)i.r7'
System::Call 'user32::DrawText(i $7,t "Hello!",i $4,ir8,i 0x400)i.r6' # <-- some error here
MessageBox MB_OK "DrawText result: $6" # System::Call returned an empty string
Please help me to make a correct call to the DrawText. Thank you very much in advance!