synopse / mORMot

Synopse mORMot 1 ORM/SOA/MVC framework - Please upgrade to mORMot 2 !
https://synopse.info
789 stars 325 forks source link

Corrected dialog width when using custom width #333

Closed Dmitro25 closed 4 years ago

Dmitro25 commented 4 years ago

When using "TaskDialogIndirect" function, "Config.cxWidth" parameter should be measured in dialog units (see https://docs.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-taskdialogconfig), but "aWidth" is in pixels (according to "Execute" function description). Therefore, we need to either correct the function description (say that "aWidth" is measured in dialog units), or the code.