14#define PI 3.14159265358979323846
32 Bounds(
long l,
long t,
long r,
long b)
52 long xPixels = numPixels;
63 long yPixels = numPixels;
78 long xPixels = numPixels;
89 long yPixels = numPixels;
235 static BOOL
getExeName(wstring& filePath, BOOL returnFileNameOnly);
240 static BOOL
copyFile(
const wstring& srcFilePath,
const wstring& destFilePath, BOOL failIfExists = TRUE, BOOL createDirectoryIfNotExists = TRUE);
241 static BOOL
getFileSize(
const wstring& filePath, DWORD& fileSize);
243 static BOOL
getPathComponents(
const wstring& filePath, wstring& directory, wstring& fileName, wstring& fileExtension);
246 static BOOL
readFile(FILE* fp,
void* buffer,
size_t size, DWORD atOffset);
247 static BOOL
writeFile(FILE* fp,
void* buffer,
size_t size, DWORD atOffset);
253 static BOOL
addRegistryEntry(
const wchar_t* valueName,
const wchar_t* valueData,
const wchar_t* subKeyPath, HKEY hSection = HKEY_CURRENT_USER);
254 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:184
@ RADAR
Definition Common.h:191
@ LINE
Definition Common.h:189
@ SCATTER
Definition Common.h:192
@ DONUT
Definition Common.h:187
@ BAR
Definition Common.h:185
@ AREA
Definition Common.h:188
@ HEATMAP
Definition Common.h:193
@ PIE
Definition Common.h:186
@ FUNNEL
Definition Common.h:190
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
@ BUTTON
Definition Common.h:158
@ 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
@ ACTIONICON
Definition Common.h:157
ButtonType
Definition Common.h:161
@ LIGHTGRAY
Definition Common.h:169
@ SILVER
Definition Common.h:178
@ BLUE
Definition Common.h:170
@ PINK
Definition Common.h:174
@ WARN
Definition Common.h:167
@ CYAN
Definition Common.h:173
@ PRIMARY
Definition Common.h:163
@ GRAY
Definition Common.h:168
@ BROWN
Definition Common.h:177
@ INFO
Definition Common.h:164
@ DEFAULT
Definition Common.h:162
@ ORANGE
Definition Common.h:176
@ DANGER
Definition Common.h:165
@ WINDOW
Definition Common.h:180
@ CUSTOM
Definition Common.h:181
@ TEAL
Definition Common.h:172
@ LIGHTBLUE
Definition Common.h:171
@ RED
Definition Common.h:179
@ SUCCESS
Definition Common.h:166
@ INDIGO
Definition Common.h:175
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 l, long t, long r, long b)
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:205
KeyValue(const wstring &key, const wstring &value)
Definition Common.h:200
wstring _value
Definition Common.h:206
__int64 _value4
Definition Common.h:215
__int64 _value5
Definition Common.h:216
__int64 _value3
Definition Common.h:214
__int64 _value1
Definition Common.h:212
__int64 _value6
Definition Common.h:217
__int64 _value9
Definition Common.h:220
__int64 _value7
Definition Common.h:218
__int64 _value10
Definition Common.h:221
__int64 _value8
Definition Common.h:219
__int64 _value2
Definition Common.h:213