WTL Controls
Back to the WTL Controls Home Page.
WTL_Controls.h File Reference
#include "stdafx.h"
#include <ShellAPI.h>
#include <atlctrlx.h>
#include <string>
#include <atltheme.h>
#include <math.h>
#include "WTL_Controls_Resource.h"
#include "Bevel.h"
#include "ColorBlob.h"
#include "StaticPlus.h"
#include "HyperlinkImage.h"
#include "ODComboBox.h"
#include "ODStatic.h"
#include "EditPlus.h"
#include "ComboBoxPlus.h"
#include "ToolTipPlus.h"
#include "StatusBarPlus.h"

Go to the source code of this file.

Namespaces

 BIS_WTL_CONTROLS
 

Macros

#define _WTL_USE_VSSYM32
 
#define _WTL_NEW_UXTHEME
 
#define CLR_DARK_RED   0x000080
 
#define CLR_DARK_GREEN   0x008000
 
#define CLR_DARK_YELLOW   0x008080
 
#define CLR_DARK_BLUE   0x800000
 
#define CLR_DARK_MAGENTA   0x800080
 
#define CLR_DARK_CYAN   0x808000
 
#define CLR_MONEY_GREEN   0xc0dcc0
 
#define CLR_SKY_BLUE   0xf0caa6
 
#define CLR_CYAN   0xffff00
 
#define CLR_MAGENTA   0xff00ff
 
#define CLR_BLUE   0xff0000
 
#define CLR_YELLOW   0x00ffff
 
#define CLR_GREEN   0x00ff00
 
#define CLR_RED   0x0000ff
 
#define CLR_CREAM   0xf0fbff
 
#define CLR_ORANGE   33023
 
#define CLR_PALE_RED   8421631
 
#define CLR_CHARTREUSE   65408
 
#define CLR_BROWN   4210816
 
#define CLR_PALE_YELLOW   8454143
 
#define CLR_FOREST_GREEN   4210688
 
#define CLR_VIOLET   8388672
 
#define CLR_DARK_BROWN   64
 
#define CLR_LAVENDER   16744703
 
#define CLR_GOLD   2203079
 
#define CLR_PINK   16744703
 
#define CLR_BLACK   0x000000
 
#define CLR_VERY_DARK_GRAY   0x404040
 
#define CLR_DARK_GRAY   0x808080
 
#define CLR_SLATE_GRAY   0x908070
 
#define CLR_LIGHT_SLATE_GRAY   0x998877
 
#define CLR_GRAY   0xa0a0a0
 
#define CLR_SILVER   0xc0c0c0
 
#define CLR_LIGHT_GRAY   0xd3d3d3
 
#define CLR_WHITE   0xffffff
 
#define CLR_PALE_GOLDENROD   0xaae8ee
 
#define CLR_GOLDENROD   0x20a52da
 
#define CLR_DARK_COLDENROD   0x0b86b8
 
#define CLR_LIGHT_STEEL_BLUE   0xdec4b0
 

Enumerations

enum  BIS_WTL_CONTROLS::CEdgeStyle { BIS_WTL_CONTROLS::CEdgeStyle::esNone, BIS_WTL_CONTROLS::CEdgeStyle::esLine, BIS_WTL_CONTROLS::CEdgeStyle::esBump, BIS_WTL_CONTROLS::CEdgeStyle::esEtched, BIS_WTL_CONTROLS::CEdgeStyle::esRaised, BIS_WTL_CONTROLS::CEdgeStyle::esSunken, BIS_WTL_CONTROLS::CEdgeStyle::esThinRaised, BIS_WTL_CONTROLS::CEdgeStyle::esThinSunken }
 Style of edge defining control boundaries. More...
 
enum  BIS_WTL_CONTROLS::CHorzAlignment { BIS_WTL_CONTROLS::CHorzAlignment::haLeft, BIS_WTL_CONTROLS::CHorzAlignment::haCenter, BIS_WTL_CONTROLS::CHorzAlignment::haRight }
 Control horizontal placement of text in control window. More...
 
enum  BIS_WTL_CONTROLS::CVertAlignment { BIS_WTL_CONTROLS::CVertAlignment::vaTop, BIS_WTL_CONTROLS::CVertAlignment::vaMiddle, BIS_WTL_CONTROLS::CVertAlignment::vaBottom }
 Control vertical placement of text in control window. More...
 
enum  BIS_WTL_CONTROLS::CThemedBackgroundStyle { BIS_WTL_CONTROLS::CThemedBackgroundStyle::tbPrimaryPanel, BIS_WTL_CONTROLS::CThemedBackgroundStyle::tbMainInstructionPane, BIS_WTL_CONTROLS::CThemedBackgroundStyle::tbContentPane, BIS_WTL_CONTROLS::CThemedBackgroundStyle::tbSecondaryPanel, BIS_WTL_CONTROLS::CThemedBackgroundStyle::tbControlPane }
 The CThemedBackgroundStyle enumerants correspond to select TaskDialog Parts, as indicated below. More...
 
enum  BIS_WTL_CONTROLS::CThemedTextStyle { BIS_WTL_CONTROLS::CThemedTextStyle::ttMainInstruction, BIS_WTL_CONTROLS::CThemedTextStyle::ttInstruction, BIS_WTL_CONTROLS::CThemedTextStyle::ttBodyTitle, BIS_WTL_CONTROLS::CThemedTextStyle::ttBodyText, BIS_WTL_CONTROLS::CThemedTextStyle::ttSecondaryText, BIS_WTL_CONTROLS::CThemedTextStyle::ttLabel, BIS_WTL_CONTROLS::CThemedTextStyle::ttControlLabel_Normal, BIS_WTL_CONTROLS::CThemedTextStyle::ttControlLabel_Disabled }
 The CThemedTextStyle enumerants correspond to select TextStyle Parts and States, as indicated below. More...
 

Functions

CString BIS_WTL_CONTROLS::Double_To_String (double number, int precision)
 Convert a double to a CString, with a given number of significant digits. More...
 
CString BIS_WTL_CONTROLS::Int_To_String (int value, int max_digits)
 Convert a multi-digit integer into a CString. More...
 
double BIS_WTL_CONTROLS::Sgn (double value)
 Test the sign of a double. More...
 
BOOL BIS_WTL_CONTROLS::FilePresent (LPCTSTR FullFileName)
 Tests for the presence of a file using SearchPath. More...
 
void BIS_WTL_CONTROLS::GetLastErrorString ()
 Show a Message Box containing human-friendly information about the last failed system API call. More...
 
BOOL BIS_WTL_CONTROLS::OutlineRect (HDC HDestDC, const RECT &RDest)
 Draw a rectangular outline with the current pen. More...
 
int BIS_WTL_CONTROLS::GetCharHeight (HDC dc)
 Returns the height of a standard test string, in pixels. More...
 
int BIS_WTL_CONTROLS::GetTextLineCount (HDC dc, CString text, int width, BOOL IsEditControl)
 Returns the number of lines of text required to fit a string in a given width. More...
 
int BIS_WTL_CONTROLS::GetTextLength (CString str, HFONT font)
 Measure the length, in pixels, of a string using a given font. More...
 
void BIS_WTL_CONTROLS::DlgComboInit (int nDlgID, HWND DlgHwnd)
 Load combo boxes with strings stored in a resources file. More...
 

Variables

const int WM_EDITP_EDIT_END = WM_APP + 1011
 

Macro Definition Documentation

◆ _WTL_USE_VSSYM32

#define _WTL_USE_VSSYM32

Definition at line 25 of file WTL_Controls.h.

◆ _WTL_NEW_UXTHEME

#define _WTL_NEW_UXTHEME

Definition at line 26 of file WTL_Controls.h.

◆ CLR_DARK_RED

#define CLR_DARK_RED   0x000080

Definition at line 123 of file WTL_Controls.h.

◆ CLR_DARK_GREEN

#define CLR_DARK_GREEN   0x008000

Definition at line 124 of file WTL_Controls.h.

◆ CLR_DARK_YELLOW

#define CLR_DARK_YELLOW   0x008080

Definition at line 125 of file WTL_Controls.h.

◆ CLR_DARK_BLUE

#define CLR_DARK_BLUE   0x800000

Definition at line 126 of file WTL_Controls.h.

◆ CLR_DARK_MAGENTA

#define CLR_DARK_MAGENTA   0x800080

Definition at line 127 of file WTL_Controls.h.

◆ CLR_DARK_CYAN

#define CLR_DARK_CYAN   0x808000

Definition at line 128 of file WTL_Controls.h.

◆ CLR_MONEY_GREEN

#define CLR_MONEY_GREEN   0xc0dcc0

Definition at line 129 of file WTL_Controls.h.

◆ CLR_SKY_BLUE

#define CLR_SKY_BLUE   0xf0caa6

Definition at line 130 of file WTL_Controls.h.

◆ CLR_CYAN

#define CLR_CYAN   0xffff00

Definition at line 131 of file WTL_Controls.h.

◆ CLR_MAGENTA

#define CLR_MAGENTA   0xff00ff

Definition at line 132 of file WTL_Controls.h.

◆ CLR_BLUE

#define CLR_BLUE   0xff0000

Definition at line 133 of file WTL_Controls.h.

◆ CLR_YELLOW

#define CLR_YELLOW   0x00ffff

Definition at line 134 of file WTL_Controls.h.

◆ CLR_GREEN

#define CLR_GREEN   0x00ff00

Definition at line 135 of file WTL_Controls.h.

◆ CLR_RED

#define CLR_RED   0x0000ff

Definition at line 136 of file WTL_Controls.h.

◆ CLR_CREAM

#define CLR_CREAM   0xf0fbff

Definition at line 137 of file WTL_Controls.h.

◆ CLR_ORANGE

#define CLR_ORANGE   33023

Definition at line 138 of file WTL_Controls.h.

◆ CLR_PALE_RED

#define CLR_PALE_RED   8421631

Definition at line 139 of file WTL_Controls.h.

◆ CLR_CHARTREUSE

#define CLR_CHARTREUSE   65408

Definition at line 140 of file WTL_Controls.h.

◆ CLR_BROWN

#define CLR_BROWN   4210816

Definition at line 141 of file WTL_Controls.h.

◆ CLR_PALE_YELLOW

#define CLR_PALE_YELLOW   8454143

Definition at line 142 of file WTL_Controls.h.

◆ CLR_FOREST_GREEN

#define CLR_FOREST_GREEN   4210688

Definition at line 143 of file WTL_Controls.h.

◆ CLR_VIOLET

#define CLR_VIOLET   8388672

Definition at line 144 of file WTL_Controls.h.

◆ CLR_DARK_BROWN

#define CLR_DARK_BROWN   64

Definition at line 145 of file WTL_Controls.h.

◆ CLR_LAVENDER

#define CLR_LAVENDER   16744703

Definition at line 146 of file WTL_Controls.h.

◆ CLR_GOLD

#define CLR_GOLD   2203079

Definition at line 147 of file WTL_Controls.h.

◆ CLR_PINK

#define CLR_PINK   16744703

Definition at line 148 of file WTL_Controls.h.

◆ CLR_BLACK

#define CLR_BLACK   0x000000

Definition at line 150 of file WTL_Controls.h.

◆ CLR_VERY_DARK_GRAY

#define CLR_VERY_DARK_GRAY   0x404040

Definition at line 151 of file WTL_Controls.h.

◆ CLR_DARK_GRAY

#define CLR_DARK_GRAY   0x808080

Definition at line 152 of file WTL_Controls.h.

◆ CLR_SLATE_GRAY

#define CLR_SLATE_GRAY   0x908070

Definition at line 153 of file WTL_Controls.h.

◆ CLR_LIGHT_SLATE_GRAY

#define CLR_LIGHT_SLATE_GRAY   0x998877

Definition at line 154 of file WTL_Controls.h.

◆ CLR_GRAY

#define CLR_GRAY   0xa0a0a0

Definition at line 155 of file WTL_Controls.h.

◆ CLR_SILVER

#define CLR_SILVER   0xc0c0c0

Definition at line 156 of file WTL_Controls.h.

◆ CLR_LIGHT_GRAY

#define CLR_LIGHT_GRAY   0xd3d3d3

Definition at line 157 of file WTL_Controls.h.

◆ CLR_WHITE

#define CLR_WHITE   0xffffff

Definition at line 158 of file WTL_Controls.h.

◆ CLR_PALE_GOLDENROD

#define CLR_PALE_GOLDENROD   0xaae8ee

Definition at line 160 of file WTL_Controls.h.

◆ CLR_GOLDENROD

#define CLR_GOLDENROD   0x20a52da

Definition at line 161 of file WTL_Controls.h.

◆ CLR_DARK_COLDENROD

#define CLR_DARK_COLDENROD   0x0b86b8

Definition at line 162 of file WTL_Controls.h.

◆ CLR_LIGHT_STEEL_BLUE

#define CLR_LIGHT_STEEL_BLUE   0xdec4b0

Definition at line 163 of file WTL_Controls.h.

Variable Documentation

◆ WM_EDITP_EDIT_END

const int WM_EDITP_EDIT_END = WM_APP + 1011

Definition at line 102 of file WTL_Controls.h.