feisty meow concerns codebase
2.140
|
Aids in achievement of platform independence. More...
Go to the source code of this file.
Namespaces | |
application | |
Implements an application lock to ensure only one is running at once. | |
Macros | |
#define | LONGINT_SIZE 4 |
#define | LoadBitmap(a, b) (a) |
#define | __stdcall |
#define | afx_msg |
#define | DEFINE_INSTANCE_HANDLE application_instance application::_i_handle = 0 |
some applications may need this to use rc_string and others. More... | |
#define | SET_INSTANCE_HANDLE(value) application::_i_handle = value |
use this to change the instance handle for this dll or exe. More... | |
#define | GET_INSTANCE_HANDLE() application::_i_handle |
a handy macro that frees one from knowing the name of the handle. More... | |
#define | RGB(r, g, b) (b + (g << 8) + (r << 16)) |
< returns the command line that /proc has recorded for our process. More... | |
Typedefs | |
typedef void * | application_instance |
typedef unsigned long | DWORD |
typedef void * | HANDLE |
typedef void * | ATOM |
typedef void * | BITMAPINFO |
typedef void * | HBITMAP |
typedef void * | HDC |
typedef void * | RGBQUAD |
typedef void * | window_handle |
Variables | |
application_instance | application::_i_handle |
< returns the name of the module for the "module_handle" where supported. More... | |
Aids in achievement of platform independence.
These definitions, inclusions and types are aimed at allowing our source code to remain independent of the underlying windowing and operating systems. Specifically, windows puts a lot of burden on the developer, and this file exists to hide all that malarkey.
Definition in file windoze_helper.h.
#define __stdcall |
Definition at line 106 of file windoze_helper.h.
#define afx_msg |
Definition at line 107 of file windoze_helper.h.
#define DEFINE_INSTANCE_HANDLE application_instance application::_i_handle = 0 |
some applications may need this to use rc_string and others.
if this macro is used, then the code is impervious to future changes in how the instance handle works.
Definition at line 173 of file windoze_helper.h.
#define GET_INSTANCE_HANDLE | ( | ) | application::_i_handle |
a handy macro that frees one from knowing the name of the handle.
Definition at line 180 of file windoze_helper.h.
#define LoadBitmap | ( | a, | |
b | |||
) | (a) |
Definition at line 105 of file windoze_helper.h.
#define LONGINT_SIZE 4 |
Definition at line 87 of file windoze_helper.h.
#define RGB | ( | r, | |
g, | |||
b | |||
) | (b + (g << 8) + (r << 16)) |
< returns the command line that /proc has recorded for our process.
istring get_cmdline_from_proc(); < turns the integer "to_convert" into a string stored in the "buffer".
< this is needed on linux since there doesn't seem to be a builtin version of it. the buffer must be long enough to hold the number's textual representation! the buffer's length must also account for the chosen "radix" (the base for the number system, where 10 is decimal, 16 is hexadecimal, etc). no idea if that's even approximately right.
Definition at line 199 of file windoze_helper.h.
#define SET_INSTANCE_HANDLE | ( | value | ) | application::_i_handle = value |
use this to change the instance handle for this dll or exe.
note that this should be done only once and by the main thread.
Definition at line 177 of file windoze_helper.h.
typedef void* application_instance |
Definition at line 79 of file windoze_helper.h.
typedef void* ATOM |
Definition at line 100 of file windoze_helper.h.
typedef void* BITMAPINFO |
Definition at line 101 of file windoze_helper.h.
typedef unsigned long DWORD |
Definition at line 92 of file windoze_helper.h.
typedef void* HANDLE |
Definition at line 97 of file windoze_helper.h.
typedef void* HBITMAP |
Definition at line 102 of file windoze_helper.h.
typedef void* HDC |
Definition at line 103 of file windoze_helper.h.
typedef void* RGBQUAD |
Definition at line 104 of file windoze_helper.h.
typedef void* window_handle |
Definition at line 129 of file windoze_helper.h.