galbar.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "galbar.h"
#include "gallery.h"
#include "mainfrm.h"
#include "oilmods.h"
#include "dlgmgr.h"
#include "bitbutn.h"
#include "childbar.h"
#include "bbutdef.h"
#include "ctrlhelp.h"
#include "camelot.h"
#include "ctl3d.h"
#include "fonts.h"

Go to the source code of this file.

Defines

#define MIN(a, b)   (((a)>(b)) ? (b) : (a))
#define MAX(a, b)   (((a)>(b)) ? (a) : (b))
#define MINIMUM_GALLERY_HEIGHT   40

Functions

void Ctl3dSubClassCtl (HWND Hwnd)
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 MAX a,
 )     (((a)>(b)) ? (a) : (b))
 

Definition at line 124 of file galbar.cpp.

#define MIN a,
 )     (((a)>(b)) ? (b) : (a))
 

Definition at line 123 of file galbar.cpp.

#define MINIMUM_GALLERY_HEIGHT   40
 

Definition at line 129 of file galbar.cpp.


Function Documentation

void Ctl3dSubClassCtl HWND  Hwnd  ) 
 

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 152 of file galbar.cpp.

00153 {
00154     RECT rect;
00155     rect.left   = x;
00156     rect.top    = y;
00157     rect.right  = x + dx;
00158     rect.bottom = y + dy;
00159 
00160     cDC->SetBkColor(rgb);
00161     cDC->ExtTextOut(0, 0, ETO_OPAQUE, &rect, NULL, 0, NULL);
00162 }


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