| #define GetBkColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BK_COLOR) |
Gets the background color of a DC.
| hdc | The device context. |
| #define GetBkMode | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BK_MODE) |
Gets the background mode of a DC.
| hdc | The device context. |
| BM_TRANSPARENT | Indicate that reserve the background untouched when drawing text. | |
| BM_OPAQUE | Indicate that erase the background with background color when drawing text. |
| #define GetBrushColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_BRUSH_COLOR) |
Gets the brush color of a DC.
| hdc | The device context. |
| #define GetPenColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_PEN_COLOR) |
Gets the pen color of a DC.
| hdc | The device context. |
| #define GetTabStop | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_TAB_STOP) |
Gets the tabstop value of a DC.
| hdc | The device context. |
| #define GetTextColor | ( | hdc | ) | GetDCAttr (hdc, DC_ATTR_TEXT_COLOR) |
Gets the text color of a DC.
| hdc | The device context. |
| #define SetBkColor | ( | hdc, | |||
| color | ) | SetDCAttr (hdc, DC_ATTR_BK_COLOR, (DWORD) color) |
Sets the background color of a DC to a new value.
| hdc | The device context. | |
| color | The new background color (pixel value). |
| #define SetBkMode | ( | hdc, | |||
| mode | ) | SetDCAttr (hdc, DC_ATTR_BK_MODE, (DWORD) mode) |
Sets the background color of a DC to a new mode.
| hdc | The device context. | |
| mode | The new background mode, be can one of the following values: |
| #define SetBrushColor | ( | hdc, | |||
| color | ) | SetDCAttr (hdc, DC_ATTR_BRUSH_COLOR, (DWORD) color) |
Sets the brush color of a DC to a new value.
| hdc | The device context. | |
| color | The new brush color (pixel value). |
| #define SetPenColor | ( | hdc, | |||
| color | ) | SetDCAttr (hdc, DC_ATTR_PEN_COLOR, (DWORD) color) |
Sets the pen color of a DC to a new value.
| hdc | The device context. | |
| color | The new pen color (pixel value). |
| #define SetTabStop | ( | hdc, | |||
| value | ) | SetDCAttr (hdc, DC_ATTR_TAB_STOP, (DWORD) value) |
Sets the tabstop of a DC to a new value.
| hdc | The device context. | |
| value | The new tabstop value in pixels. |
| #define SetTextColor | ( | hdc, | |||
| color | ) | SetDCAttr (hdc, DC_ATTR_TEXT_COLOR, (DWORD) color) |
Sets the text color of a DC to a new value.
| hdc | The device context. | |
| color | The new text color (pixel value). |
Gets a specified attribute value of a DC.
This function retrieves a specified attribute value of the DC hdc.
| hdc | The device context. | |
| attr | The attribute to be retrieved, can be one of the following values: |
| int GUIAPI GetRasterOperation | ( | HDC | hdc | ) |
Gets the raster operation of a DC.
This function gets the raster operation of the DC hdc.
| hdc | The device context. |
| ROP_SET | Set to the new pixel value, erase original pixel on the surface. | |
| ROP_AND | AND'd the new pixel value with the original pixel on the surface. | |
| ROP_OR | OR'd the new pixel value with the original pixel on the surface. | |
| ROP_XOR | XOR'd the new pixel value with the original pixel on the surface. | |
| ROP_COMPOSITE | call default color composition the new pixel value with the original pixel on the surface. | |
| ROP_COMP_USER | User defined color composition operations. |
Sets a specified attribute value of a DC.
This function sets a specified attribute value of the DC hdc.
| hdc | The device context. | |
| attr | The attribute to be set. | |
| value | The attribute value. |
| int GUIAPI SetRasterOperation | ( | HDC | hdc, | |
| int | rop | |||
| ) |
Sets the raster operation of a DC to a new value.
This function sets the raster operation of the DC hdc to the new value rop.
| hdc | The device context. | |
| rop | The new raster operation, can be one of the following values: |
1.6.3