I'm developing nsis setup with nsDialogs custom pages. I've figured out, that when i use units, not pixels, the control's position is OK on different DPI.
But I've encounter a different problem: I need to move BrandingText. Right now I do it this way:
Function setBrandTextPos
GetDlgItem $0 $HWNDPARENT 1028
System::Call "User32::SetWindowPos(i, i, i, i, i, i, i) b ($0, 0, 25, 307, 510, 230, ${SWP_NOZORDER}|${SWP_NOMOVE})"
GetDlgItem $0 $HWNDPARENT 1256
System::Call "User32::SetWindowPos(i, i, i, i, i, i, i) b ($0, 0, 25, 307, 510, 230, ${SWP_NOZORDER}|${SWP_NOMOVE})"
GetDlgItem $0 $HWNDPARENT 1035
System::Call "User32::BringWindowToTop(i) b ($0)"
FunctionEnd That is - via System::Call "User32::SetWindowPos. But I don't know, how to make it independent to the DPI. I read several times h++p://forums.winamp.com/showthread.php?s=&threadid=275299, but I can't figure out the idea.
Can somebody give me a working example?
Thanks in advance.