progbar.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "mainfrm.h"
#include "statline.h"
#include "progbar.h"
#include "fonts.h"
#include "camafx.h"
#include "cstatbar.h"
#include <afxpriv.h>

Go to the source code of this file.

Defines

#define CX_BORDER   1
#define CY_BORDER   1
#define CHECKPEN(Ptr)   ((CPen *) (Ptr))
#define CHECKBRUSH(Ptr)   ((CBrush *) (Ptr))
#define CHECKFONT(Ptr)   ((CFont *) (Ptr))

Functions

static void Paint3dPlinth (CDC *pDC, CRect *rect, BOOL Indent=TRUE)

Variables

const char BASED_CODE _afxWndControlBar []
static const MAXBARWIDTH = 200


Define Documentation

#define CHECKBRUSH Ptr   )     ((CBrush *) (Ptr))
 

Definition at line 189 of file progbar.cpp.

#define CHECKFONT Ptr   )     ((CFont *) (Ptr))
 

Definition at line 190 of file progbar.cpp.

#define CHECKPEN Ptr   )     ((CPen *) (Ptr))
 

Definition at line 188 of file progbar.cpp.

#define CX_BORDER   1
 

Definition at line 158 of file progbar.cpp.

#define CY_BORDER   1
 

Definition at line 159 of file progbar.cpp.


Function Documentation

static void Paint3dPlinth CDC pDC,
CRect *  rect,
BOOL  Indent = TRUE
[static]
 

Definition at line 421 of file progbar.cpp.

00425 {
00426 // **** If 3d look is turned off, then we need to select black for BOTH of these
00427 
00428     CPen Black(PS_SOLID, 0, GetSysColor(COLOR_BTNSHADOW));
00429     CPen White(PS_SOLID, 0, GetSysColor(COLOR_BTNHIGHLIGHT));
00430 
00431     CPen *OldPen = CHECKPEN(pDC->SelectObject((Indent) ? &White : &Black));
00432 
00433     pDC->MoveTo(rect->left, rect->bottom-1);
00434     pDC->LineTo(rect->left, rect->top);
00435     pDC->LineTo(rect->right-1, rect->top);
00436 
00437     CHECKPEN(pDC->SelectObject((Indent) ? &Black : &White));
00438     pDC->MoveTo(rect->right-1, rect->top+1);    // Ensure corner pixel is correct
00439     pDC->LineTo(rect->right-1, rect->bottom-1);
00440     pDC->LineTo(rect->left, rect->bottom-1);
00441 
00442     CHECKPEN(pDC->SelectObject(OldPen));
00443 }


Variable Documentation

const char BASED_CODE _afxWndControlBar[]
 

const MAXBARWIDTH = 200 [static]
 

Definition at line 198 of file progbar.cpp.


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