Mercurial > dwindows
comparison dw.h @ 2135:d9720d48d61e
Win: Code cleanup, create internal helper functions _dw_window_get_cinfo() and
_dw_window_new_cinfo() to simply code dealing with ColorInfo structs.
Remove the vcenter and unused user fields replacing them with style and rect.
Style will cache the requested style for a window instead of the active style,
which may differ based on the state of the system. So now we can just check
the style to see if VCENTER is set.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 08 Jul 2020 22:24:33 +0000 |
parents | 42f8ad7a89e8 |
children | 709f8bfa711f |
comparison
equal
deleted
inserted
replaced
2134:9e6e4ebd5e96 | 2135:d9720d48d61e |
---|---|
628 | 628 |
629 typedef struct _color { | 629 typedef struct _color { |
630 int fore; | 630 int fore; |
631 int back; | 631 int back; |
632 HWND combo, buddy; | 632 HWND combo, buddy; |
633 int user; | 633 ULONG style; |
634 int vcenter; | 634 RECT rect; |
635 HWND clickdefault; | 635 HWND clickdefault; |
636 HBRUSH hbrush; | 636 HBRUSH hbrush; |
637 HFONT hfont; | 637 HFONT hfont; |
638 char fontname[128]; | 638 char fontname[128]; |
639 WNDPROC pOldProc; | 639 WNDPROC pOldProc; |