scrlbutn.cpp File Reference

(r1785/r1282)

#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).


Define Documentation

#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...

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> and Chris
Date:
14/3/94
Parameters:
destDC - DC into which the BMP will be plotted [INPUTS] srcBitmap - NULL, or the source bitmap x, y, width, height - rectangle to plot into

Definition at line 587 of file scrlbutn.cpp.

#define ROP_PSDPxax   0x00B8074AL
 

Definition at line 590 of file scrlbutn.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 

static void NEAR PASCAL PatB CDC cDC,
INT32  x,
INT32  y,
INT32  dx,
INT32  dy,
COLORREF  rgb
[static]
 

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).

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com> (Some MFC dude, actually)
Date:
14/3/94
Parameters:
hDC - destination DC [INPUTS] x,y,dx,dy - rectangle to fill rgb - colour to fill with

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 }


Generated on Sat Nov 10 03:49:36 2007 for Camelot by  doxygen 1.4.4