Mercurial > dwindows
comparison dw.h @ 1790:209c57a14b09
Rewrite dw_window_set_style() on Windows to properly handle the
static control. Apparently the first few style bits are not bits
at all, they are a number of individual values, so combining them
like bits causes all sorts of havok.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 04 Aug 2012 07:35:13 +0000 |
parents | 9d499b162fe1 |
children | 9304241b7b33 |
comparison
equal
deleted
inserted
replaced
1789:a640714f9087 | 1790:209c57a14b09 |
---|---|
501 #define DW_DT_TEXTATTRS 0 | 501 #define DW_DT_TEXTATTRS 0 |
502 #define DW_DT_EXTERNALLEADING 0 | 502 #define DW_DT_EXTERNALLEADING 0 |
503 #define DW_DT_CENTER SS_CENTER | 503 #define DW_DT_CENTER SS_CENTER |
504 #define DW_DT_RIGHT SS_RIGHT | 504 #define DW_DT_RIGHT SS_RIGHT |
505 #define DW_DT_TOP 0 | 505 #define DW_DT_TOP 0 |
506 #define DW_DT_VCENTER SS_NOPREFIX | 506 #define DW_DT_VCENTER (1 << 29) |
507 #define DW_DT_BOTTOM 0 | 507 #define DW_DT_BOTTOM 0 |
508 #define DW_DT_HALFTONE 0 | 508 #define DW_DT_HALFTONE 0 |
509 #define DW_DT_MNEMONIC 0 | 509 #define DW_DT_MNEMONIC 0 |
510 #define DW_DT_WORDBREAK SS_LEFT | 510 #define DW_DT_WORDBREAK (1 << 28) |
511 #define DW_DT_ERASERECT 0 | 511 #define DW_DT_ERASERECT 0 |
512 | 512 |
513 #define DW_FCF_CLOSEBUTTON 0 | 513 #define DW_FCF_CLOSEBUTTON 0 |
514 #define DW_FCF_TITLEBAR WS_CAPTION | 514 #define DW_FCF_TITLEBAR WS_CAPTION |
515 #define DW_FCF_SYSMENU WS_SYSMENU | 515 #define DW_FCF_SYSMENU WS_SYSMENU |