scrlthmb.cpp File Reference

(r1785/r751)

#include "camtypes.h"
#include "scroller.h"
#include "scrlthmb.h"
#include "csrstack.h"
#include "brushmsg.h"

Go to the source code of this file.

Functions

 DECLARE_SOURCE ("$Revision: 751 $")
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).

Variables

static CursorAdjustDragCursor = NULL
static INT32 DragCursorID = 0


Function Documentation

DECLARE_SOURCE "$Revision: 751 $"   ) 
 

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 139 of file scrlthmb.cpp.

00140 {
00141     RECT rect;
00142     rect.left   = x;
00143     rect.top    = y;
00144     rect.right  = x + dx;
00145     rect.bottom = y + dy;
00146 
00147     cDC->SetBkColor(rgb);
00148     cDC->ExtTextOut(0, 0, ETO_OPAQUE, &rect, NULL, 0, NULL);
00149 }


Variable Documentation

Cursor* AdjustDragCursor = NULL [static]
 

Definition at line 151 of file scrlthmb.cpp.

INT32 DragCursorID = 0 [static]
 

Definition at line 152 of file scrlthmb.cpp.


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