On 26.02.2017 1:32, Fabian Maurer wrote:
Why Post*? Dialog handling in user32 has an ability to do this for you.
Ah yes, I forgot about SendDlgItemMessage there.
What I mean is that dialog code can set control font for you.
Where does this come from?
What exactly, the Color? I just tried to pick one that is as similar to the original taskdialog.
Why Tahoma is hardcoded? If you're using dialog code this should be handled automatically using template data.
How do you mean? I could add a font into the DLGTEMPLATE, but I need different fonts for different controls. And since the user isn't allowed to choose the font for a taskdialog (AFAIK), I just picked one.
Different how? In sizes only? Font name should come from NONCLIENTMETRICS probably, this needs some manual testing, but it's unlikely that system settings are not respected for task dialogs on Windows.