#include "camtypes.h"
#include "scroller.h"
#include "scrlbutn.h"
#include "mainfrm.h"
#include "brushmsg.h"
Go to the source code of this file.
Defines | |
#define | ROP_DSPDxax 0x00E20746L |
Plots the given bitmap (srcDC) into the given rectangle of the destination (destDC). if srcDC == NULL, then just fills the button with grey, else... | |
#define | ROP_PSDPxax 0x00B8074AL |
Functions | |
DECLARE_SOURCE ("$Revision: 1282 $") | |
static void NEAR PASCAL | PatB (CDC *cDC, INT32 x, INT32 y, INT32 dx, INT32 dy, COLORREF rgb) |
Paints a rectangle in the given (dithered) colour It looks pretty hideous, but this is how the MFC buttonbar does it... The conclusions that this leads to are left as an exercise for the reader. (OK, so they're not. It suggest that either MFC sux, or plotting text is easier/faster than creating a brush, in which case Windoze sux). |
|
Plots the given bitmap (srcDC) into the given rectangle of the destination (destDC). if srcDC == NULL, then just fills the button with grey, else...
Definition at line 587 of file scrlbutn.cpp. |
|
Definition at line 590 of file scrlbutn.cpp. |
|
|
|
Paints a rectangle in the given (dithered) colour It looks pretty hideous, but this is how the MFC buttonbar does it... The conclusions that this leads to are left as an exercise for the reader. (OK, so they're not. It suggest that either MFC sux, or plotting text is easier/faster than creating a brush, in which case Windoze sux).
Definition at line 558 of file scrlbutn.cpp. 00559 { 00560 RECT rect; 00561 rect.left = x; 00562 rect.top = y; 00563 rect.right = x + dx; 00564 rect.bottom = y + dy; 00565 00566 cDC->SetBkColor(rgb); 00567 cDC->ExtTextOut(0, 0, ETO_OPAQUE, &rect, NULL, 0, NULL); 00568 }
|