GXDrawPushButton
void GXDrawPushButton(CDC* pDC, int x, int y, int dx, int dy, UINT nState, LPCTSTR lpszText);
pDC
Points to the device context.
x
x-coordinate.
y
y-coordinate.
dx
Width.
dy
Height.
nState
-
Specifies the pressed state of the check box:
- GX_BTNFOCUS specifies that it owns the focus.
- GX_BTNSCOPE specifies that the mouse is in its scope.
- GX_BTNPRESSED specifies that the button is pressed.
GX_BTNUNCHECKED specifies that the button is unchecked.
lpszText
Points to the text to be drawn.
Remarks
Draws an area with the visible effect of a pushbutton. The pushbutton is drawn with a gray face color. The text color and alignment is retrieved from the device-context.
The grid-component draws pushbuttons this way. The pushbutton control (CGXPushButton) maintains a button child. The button child’s CGXButton::Draw method calls GXDrawButton to draw the cell with the visible effect of a pushbutton.
You can call this function if you want to draw cells with the visible effect of a pushbutton.