Module: Windows::GDI::PaintingDrawing

Defined in:
lib/windows/gdi/painting_drawing.rb

Constant Summary

DC_ACTIVE =

Flags for DrawCaption

0x0001
DC_SMALLCAP =
0x0002
DC_ICON =
0x0004
DC_TEXT =
0x0008
DC_INBUTTON =
0x0010
DC_GRADIENT =
0x0020
DC_BUTTONS =
0x1000
BDR_RAISEDOUTER =

3D border styles

0x0001
BDR_SUNKENOUTER =
0x0002
BDR_RAISEDINNER =
0x0004
BDR_SUNKENINNER =
0x0008
BDR_OUTER =
(BDR_RAISEDOUTER | BDR_SUNKENOUTER)
BDR_INNER =
(BDR_RAISEDINNER | BDR_SUNKENINNER)
BDR_RAISED =
(BDR_RAISEDOUTER | BDR_RAISEDINNER)
BDR_SUNKEN =
(BDR_SUNKENOUTER | BDR_SUNKENINNER)
EDGE_RAISED =
(BDR_RAISEDOUTER | BDR_RAISEDINNER)
EDGE_SUNKEN =
(BDR_SUNKENOUTER | BDR_SUNKENINNER)
EDGE_ETCHED =
(BDR_SUNKENOUTER | BDR_RAISEDINNER)
EDGE_BUMP =
(BDR_RAISEDOUTER | BDR_SUNKENINNER)
BF_LEFT =

Border flags

0x0001
BF_TOP =
0x0002
BF_RIGHT =
0x0004
BF_BOTTOM =
0x0008
BF_TOPLEFT =
(BF_TOP | BF_LEFT)
BF_TOPRIGHT =
(BF_TOP | BF_RIGHT)
BF_BOTTOMLEFT =
(BF_BOTTOM | BF_LEFT)
BF_BOTTOMRIGHT =
(BF_BOTTOM | BF_RIGHT)
BF_RECT =
(BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
BF_DIAGONAL =
0x0010
BF_DIAGONAL_ENDTOPRIGHT =
(BF_DIAGONAL | BF_TOP | BF_RIGHT)
BF_DIAGONAL_ENDTOPLEFT =
(BF_DIAGONAL | BF_TOP | BF_LEFT)
BF_DIAGONAL_ENDBOTTOMLEFT =
(BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
BF_DIAGONAL_ENDBOTTOMRIGHT =
(BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
BF_MIDDLE =
0x0800
BF_SOFT =
0x1000
BF_ADJUST =
0x2000
BF_FLAT =
0x4000
BF_MONO =

Fill in the middle For softer buttons Calculate the space left over For flat rather than 3D borders For monochrome borders

0x8000
DFC_CAPTION =

Flags for DrawFrameControl

1
DFC_MENU =
2
DFC_SCROLL =
3
DFC_BUTTON =
4
DFC_POPUPMENU =
5
DFCS_CAPTIONCLOSE =
0x0000
DFCS_CAPTIONMIN =
0x0001
DFCS_CAPTIONMAX =
0x0002
DFCS_CAPTIONRESTORE =
0x0003
DFCS_CAPTIONHELP =
0x0004
DFCS_MENUARROW =
0x0000
DFCS_MENUCHECK =
0x0001
DFCS_MENUBULLET =
0x0002
DFCS_MENUARROWRIGHT =
0x0004
DFCS_SCROLLUP =
0x0000
DFCS_SCROLLDOWN =
0x0001
DFCS_SCROLLLEFT =
0x0002
DFCS_SCROLLRIGHT =
0x0003
DFCS_SCROLLCOMBOBOX =
0x0005
DFCS_SCROLLSIZEGRIP =
0x0008
DFCS_SCROLLSIZEGRIPRIGHT =
0x0010
DFCS_BUTTONCHECK =
0x0000
DFCS_BUTTONRADIOIMAGE =
0x0001
DFCS_BUTTONRADIOMASK =
0x0002
DFCS_BUTTONRADIO =
0x0004
DFCS_BUTTON3STATE =
0x0008
DFCS_BUTTONPUSH =
0x0010
DFCS_INACTIVE =
0x0100
DFCS_PUSHED =
0x0200
DFCS_CHECKED =
0x0400
DFCS_TRANSPARENT =
0x0800
DFCS_HOT =
0x1000
DFCS_ADJUSTRECT =
0x2000
DFCS_FLAT =
0x4000
DFCS_MONO =
0x8000