14#define PI 3.14159265358979323846
32 Bounds(
long x,
long y,
long x2,
long y2)
52 long xPixels = numPixels;
63 long yPixels = numPixels;
78 long xPixels = numPixels;
89 long yPixels = numPixels;
233 static BOOL
getExeName(wstring& filePath, BOOL returnFileNameOnly);
238 static BOOL
copyFile(
const wstring& srcFilePath,
const wstring& destFilePath, BOOL failIfExists = TRUE, BOOL createDirectoryIfNotExists = TRUE);
239 static BOOL
getFileSize(
const wstring& filePath, DWORD& fileSize);
241 static BOOL
getPathComponents(
const wstring& filePath, wstring& directory, wstring& fileName, wstring& fileExtension);
244 static BOOL
readFile(FILE* fp,
void* buffer,
size_t size, DWORD atOffset);
245 static BOOL
writeFile(FILE* fp,
void* buffer,
size_t size, DWORD atOffset);
251 static BOOL
addRegistryEntry(
const wchar_t* valueName,
const wchar_t* valueData,
const wchar_t* subKeyPath, HKEY hSection = HKEY_CURRENT_USER);
252 static BOOL
executeSystemCommand(
const wchar_t* command,
const wchar_t* parameters,
const wchar_t* workingDirectory, BOOL waitForCompletion = FALSE);
Direction
Definition Common.h:122
@ BOTTOM
Definition Common.h:126
@ RIGHT
Definition Common.h:125
@ TOP
Definition Common.h:124
@ LEFT
Definition Common.h:123
ImageType
Definition Common.h:141
@ PNG
Definition Common.h:142
@ JPG
Definition Common.h:144
@ GIF
Definition Common.h:143
HWND WinHandle
Definition Common.h:16
ChartType
Definition Common.h:182
@ RADAR
Definition Common.h:189
@ LINE
Definition Common.h:187
@ SCATTER
Definition Common.h:190
@ DONUT
Definition Common.h:185
@ BAR
Definition Common.h:183
@ AREA
Definition Common.h:186
@ HEATMAP
Definition Common.h:191
@ PIE
Definition Common.h:184
@ FUNNEL
Definition Common.h:188
HDC DCHandle
Definition Common.h:17
ImageAlignment
Definition Common.h:129
@ BOTTOMCENTER
Definition Common.h:137
@ MIDDLERIGHT
Definition Common.h:135
@ TOPRIGHT
Definition Common.h:132
@ MIDDLECENTER
Definition Common.h:134
@ BOTTOMLEFT
Definition Common.h:136
@ BOTTOMRIGHT
Definition Common.h:138
@ MIDDLELEFT
Definition Common.h:133
@ TOPCENTER
Definition Common.h:131
@ TOPLEFT
Definition Common.h:130
HMENU MenuHandle
Definition Common.h:18
EditType
Definition Common.h:147
@ NUMBERFIELD
Definition Common.h:150
@ TEXTAREAFIELD
Definition Common.h:154
@ TEXTFIELD
Definition Common.h:148
@ COMBOBOXFIELD
Definition Common.h:153
@ COMPUTED
Definition Common.h:156
@ DATETIMEFIELD
Definition Common.h:152
@ DATEFIELD
Definition Common.h:151
@ BOOLFIELD
Definition Common.h:155
@ MASKEDFIELD
Definition Common.h:149
ButtonType
Definition Common.h:159
@ LIGHTGRAY
Definition Common.h:167
@ SILVER
Definition Common.h:176
@ BLUE
Definition Common.h:168
@ PINK
Definition Common.h:172
@ WARN
Definition Common.h:165
@ CYAN
Definition Common.h:171
@ PRIMARY
Definition Common.h:161
@ GRAY
Definition Common.h:166
@ BROWN
Definition Common.h:175
@ INFO
Definition Common.h:162
@ DEFAULT
Definition Common.h:160
@ ORANGE
Definition Common.h:174
@ DANGER
Definition Common.h:163
@ WINDOW
Definition Common.h:178
@ CUSTOM
Definition Common.h:179
@ TEAL
Definition Common.h:170
@ LIGHTBLUE
Definition Common.h:169
@ RED
Definition Common.h:177
@ SUCCESS
Definition Common.h:164
@ INDIGO
Definition Common.h:173
long left
Definition Common.h:119
void deflateRect(long numPixels)
Definition Common.h:50
Bounds()
Definition Common.h:24
void setWidth(long w)
Definition Common.h:40
void inflateRect(long numPixels)
Definition Common.h:76
void setHeight(long h)
Definition Common.h:45
long height() const
Definition Common.h:107
long top
Definition Common.h:119
Bounds(long x, long y, long x2, long y2)
Definition Common.h:32
long right
Definition Common.h:119
BOOL contains(long x, long y)
Definition Common.h:112
long width() const
Definition Common.h:102
long bottom
Definition Common.h:119
static RECT SRectToRECT(const Bounds &rect)
static string wStrToStr(const wchar_t *input)
static BOOL copyFile(const wstring &srcFilePath, const wstring &destFilePath, BOOL failIfExists=TRUE, BOOL createDirectoryIfNotExists=TRUE)
static BOOL writeFile(FILE *fp, void *buffer, size_t size, DWORD atOffset)
static BOOL readFile(FILE *fp, void *buffer, size_t size, DWORD atOffset)
static BOOL getFileSize(const wstring &filePath, DWORD &fileSize)
static BOOL executeSystemCommand(const wchar_t *command, const wchar_t *parameters, const wchar_t *workingDirectory, BOOL waitForCompletion=FALSE)
static BOOL createShortcut(const wchar_t *targetPath)
static SYSTEMTIME strYYYYMMDDToSystemTime(const wstring &strYYYYMMDD)
static BOOL getExeFolder(wstring &exeDir)
static BOOL getDirFromPath(const wstring &filePath, wstring &directory)
static BOOL isDigitOrAlpha(wchar_t ch)
static BOOL addRegistryEntry(const wchar_t *valueName, const wchar_t *valueData, const wchar_t *subKeyPath, HKEY hSection=HKEY_CURRENT_USER)
static BOOL createDirectory(const wstring &directory)
static wstring strToWStr(const char *input)
static wstring systemTimeToStrYYYYMMDD(const SYSTEMTIME &sysTime)
static BOOL getPathComponents(const wstring &filePath, wstring &directory, wstring &fileName, wstring &fileExtension)
static BOOL isAlpha(wchar_t ch)
static BOOL isDigit(wchar_t ch)
static BOOL getExeName(wstring &filePath, BOOL returnFileNameOnly)
wstring _key
Definition Common.h:203
KeyValue(const wstring &key, const wstring &value)
Definition Common.h:198
wstring _value
Definition Common.h:204
__int64 _value4
Definition Common.h:213
__int64 _value5
Definition Common.h:214
__int64 _value3
Definition Common.h:212
__int64 _value1
Definition Common.h:210
__int64 _value6
Definition Common.h:215
__int64 _value9
Definition Common.h:218
__int64 _value7
Definition Common.h:216
__int64 _value10
Definition Common.h:219
__int64 _value8
Definition Common.h:217
__int64 _value2
Definition Common.h:211