From d7e56cffd09102530bc86c2a0c7b8fe022e5755f Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 30 Nov 2004 17:22:47 +0000 Subject: [PATCH] Gather all DrawText flags together, convert them to hex for readability. --- include/winuser.h | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/include/winuser.h b/include/winuser.h index 7a4f1ff4684..c1426dafa7c 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -472,13 +472,6 @@ typedef struct tagDRAWTEXTPARAMS #define WM_USER 0x0400 -#define DT_EDITCONTROL 0x00002000 -#define DT_PATH_ELLIPSIS 0x00004000 -#define DT_END_ELLIPSIS 0x00008000 -#define DT_MODIFYSTRING 0x00010000 -#define DT_RTLREADING 0x00020000 -#define DT_WORD_ELLIPSIS 0x00040000 - typedef struct { LPARAM lParam; @@ -3104,21 +3097,31 @@ typedef struct { #define GMDI_USEDISABLED 0x0001L #define GMDI_GOINTOPOPUPS 0x0002L -#define DT_TOP 0 -#define DT_LEFT 0 -#define DT_CENTER 1 -#define DT_RIGHT 2 -#define DT_VCENTER 4 -#define DT_BOTTOM 8 -#define DT_WORDBREAK 16 -#define DT_SINGLELINE 32 -#define DT_EXPANDTABS 64 -#define DT_TABSTOP 128 -#define DT_NOCLIP 256 -#define DT_EXTERNALLEADING 512 -#define DT_CALCRECT 1024 -#define DT_NOPREFIX 2048 -#define DT_INTERNAL 4096 +/* DrawText() flags */ +#define DT_TOP 0x00000000 +#define DT_LEFT 0x00000000 +#define DT_CENTER 0x00000001 +#define DT_RIGHT 0x00000002 +#define DT_VCENTER 0x00000004 +#define DT_BOTTOM 0x00000008 +#define DT_WORDBREAK 0x00000010 +#define DT_SINGLELINE 0x00000020 +#define DT_EXPANDTABS 0x00000040 +#define DT_TABSTOP 0x00000080 +#define DT_NOCLIP 0x00000100 +#define DT_EXTERNALLEADING 0x00000200 +#define DT_CALCRECT 0x00000400 +#define DT_NOPREFIX 0x00000800 +#define DT_INTERNAL 0x00001000 +#define DT_EDITCONTROL 0x00002000 +#define DT_PATH_ELLIPSIS 0x00004000 +#define DT_END_ELLIPSIS 0x00008000 +#define DT_MODIFYSTRING 0x00010000 +#define DT_RTLREADING 0x00020000 +#define DT_WORD_ELLIPSIS 0x00040000 +#define DT_NOFULLWIDTHCHARBREAK 0x00080000 +#define DT_HIDEPREFIX 0x00100000 +#define DT_PREFIXONLY 0x00200000 /* DrawCaption()/DrawCaptionTemp() flags */ #define DC_ACTIVE 0x0001