#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). |
|
Definition at line 124 of file galbar.cpp. |
|
Definition at line 123 of file galbar.cpp. |
|
Definition at line 129 of file galbar.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 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 }
|