I have written this program as a basic demonstration of vertical alignment in static controls, particularly in relation to my accompanying patch (sent to wine-patches). The program draws 12 static text controls onto the window, and shows the style it's using in the text of each one. Attached is the aligntest program and source code (in tarball), and several screenshots from Windows and using wine on Linux for comparison (one screenshot has been edited to show which styles are different on the current version of wine when compared with Windows).
n0dalus.
Note: I don't know why the SS_STATIC control is white with wine and gray with Windows, but this is a separate issue from the vertical alignment.
"n0dalus" n0dalus+wine@gmail.com wrote:
Note: I don't know why the SS_STATIC control is white with wine and gray with Windows, but this is a separate issue from the vertical alignment.
This is because STATIC_PaintTextfn doesn't draw background for SS_SIMPLE controls. This needs a message test I think (dlls/user/msg.c).