23#define HTMLHELP_PATH(_pt) _T("%systemroot%\\Help\\calc.chm::") _T(_pt)
25#define MAKE_BITMASK4(_show_b16, _show_b10, _show_b8, _show_b2) \
26 (((_show_b2) << 0) | \
28 ((_show_b10) << 2) | \
31#define MAKE_BITMASK5(_transl, _is_stats, _is_ctrl, _show_b16, _show_b10, _show_b8, _show_b2) \
32 (((_show_b2) << 0) | \
34 ((_show_b10) << 2) | \
35 ((_show_b16) << 3) | \
37 ((_is_stats) << 6) | \
40#define KEY_IS_UP 0x80000000
41#define KEY_WAS_DOWN 0x40000000
43#define BITMASK_IS_ASCII 0x80
44#define BITMASK_IS_STATS 0x40
45#define BITMASK_IS_CTRL 0x20
46#define BITMASK_HEX_MASK 0x08
47#define BITMASK_DEC_MASK 0x04
48#define BITMASK_OCT_MASK 0x02
49#define BITMASK_BIN_MASK 0x01
51#define CALC_CLR_RED RGB(0xFF, 0x00, 0x00)
52#define CALC_CLR_BLUE RGB(0x00, 0x00, 0xFF)
53#define CALC_CLR_PURP RGB(0xFF, 0x00, 0xFF)
67#define CTRL_FLAG 0x100
70#define CTRL_A (0x0001+'A'-'A')
71#define CTRL_C (0x0001+'C'-'A')
72#define CTRL_D (0x0001+'D'-'A')
73#define CTRL_L (0x0001+'L'-'A')
74#define CTRL_M (0x0001+'M'-'A')
75#define CTRL_P (0x0001+'P'-'A')
76#define CTRL_R (0x0001+'R'-'A')
77#define CTRL_S (0x0001+'S'-'A')
78#define CTRL_T (0x0001+'T'-'A')
79#define CTRL_V (0x0001+'V'-'A')
80#define CTRL_Z (0x0001+'Z'-'A')
84 {
IDC_BUTTON_STA,
CTRL_S,
MAKE_BITMASK5( 1, 0, 1, 1, 1, 1, 1),
CALC_CLR_BLUE, },
85 {
IDC_BUTTON_AVE,
CTRL_A,
MAKE_BITMASK5( 1, 1, 1, 1, 1, 1, 1),
CALC_CLR_BLUE, },
86 {
IDC_BUTTON_SUM,
CTRL_T,
MAKE_BITMASK5( 1, 1, 1, 1, 1, 1, 1),
CALC_CLR_BLUE, },
87 {
IDC_BUTTON_S,
CTRL_D,
MAKE_BITMASK5( 1, 1, 1, 1, 1, 1, 1),
CALC_CLR_BLUE, },
88 {
IDC_BUTTON_MS,
CTRL_M,
MAKE_BITMASK5( 1, 0, 1, 1, 1, 1, 1),
CALC_CLR_RED, },
89 {
IDC_BUTTON_MR,
CTRL_R,
MAKE_BITMASK5( 1, 0, 1, 1, 1, 1, 1),
CALC_CLR_RED, },
90 {
IDC_BUTTON_MP,
CTRL_P,
MAKE_BITMASK5( 1, 0, 1, 1, 1, 1, 1),
CALC_CLR_RED, },
91 {
IDC_BUTTON_MC,
CTRL_L,
MAKE_BITMASK5( 1, 0, 1, 1, 1, 1, 1),
CALC_CLR_RED, },
92 {
IDC_BUTTON_0,
'0',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_BLUE, },
93 {
IDC_BUTTON_1,
'1',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_BLUE, },
94 {
IDC_BUTTON_2,
'2',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 0),
CALC_CLR_BLUE, },
95 {
IDC_BUTTON_3,
'3',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 0),
CALC_CLR_BLUE, },
96 {
IDC_BUTTON_4,
'4',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 0),
CALC_CLR_BLUE, },
97 {
IDC_BUTTON_5,
'5',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 0),
CALC_CLR_BLUE, },
98 {
IDC_BUTTON_6,
'6',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 0),
CALC_CLR_BLUE, },
99 {
IDC_BUTTON_7,
'7',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 0),
CALC_CLR_BLUE, },
100 {
IDC_BUTTON_8,
'8',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 0, 0),
CALC_CLR_BLUE, },
101 {
IDC_BUTTON_9,
'9',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 0, 0),
CALC_CLR_BLUE, },
102 {
IDC_BUTTON_DOT,
'.',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_BLUE, },
103 {
IDC_BUTTON_DOT,
',',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0), -1, },
104 {
IDC_BUTTON_ADD,
'+',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
105 {
IDC_BUTTON_SUB,
'-',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
106 {
IDC_BUTTON_MULT,
'*',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
107 {
IDC_BUTTON_DIV,
'/',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
108 {
IDC_BUTTON_AND,
'&',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
109 {
IDC_BUTTON_OR,
'|',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
110 {
IDC_BUTTON_XOR,
'^',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
111 {
IDC_BUTTON_LSH,
'<',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
112 {
IDC_BUTTON_NOT,
'~',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
113 {
IDC_BUTTON_INT,
';',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_RED, },
114 {
IDC_BUTTON_EQU,
'=',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
115 {
IDC_BUTTON_A,
'A',
MAKE_BITMASK5( 1, 0, 0, 1, 0, 0, 0),
CALC_CLR_BLUE, },
116 {
IDC_BUTTON_B,
'B',
MAKE_BITMASK5( 1, 0, 0, 1, 0, 0, 0),
CALC_CLR_BLUE, },
117 {
IDC_BUTTON_C,
'C',
MAKE_BITMASK5( 1, 0, 0, 1, 0, 0, 0),
CALC_CLR_BLUE, },
118 {
IDC_BUTTON_D,
'D',
MAKE_BITMASK5( 1, 0, 0, 1, 0, 0, 0),
CALC_CLR_BLUE, },
119 {
IDC_BUTTON_E,
'E',
MAKE_BITMASK5( 1, 0, 0, 1, 0, 0, 0),
CALC_CLR_BLUE, },
120 {
IDC_BUTTON_F,
'F',
MAKE_BITMASK5( 1, 0, 0, 1, 0, 0, 0),
CALC_CLR_BLUE, },
121 {
IDC_CHECK_HYP,
'H',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1), -1, },
122 {
IDC_CHECK_INV,
'I',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1), -1, },
123 {
IDC_BUTTON_LOG,
'L',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
124 {
IDC_BUTTON_DMS,
'M',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
125 {
IDC_BUTTON_LN,
'N',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
126 {
IDC_BUTTON_PI,
'P',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_BLUE, },
127 {
IDC_BUTTON_RX,
'R',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
128 {
IDC_BUTTON_SIN,
'S',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
129 {
IDC_BUTTON_COS,
'O',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
130 {
IDC_BUTTON_TAN,
'T',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
131 {
IDC_BUTTON_FE,
'V',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
132 {
IDC_BUTTON_EXP,
'X',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_PURP, },
133 {
IDC_BUTTON_XeY,
'Y',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_PURP, },
134 {
IDC_BUTTON_SQRT,
'@',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_BLUE, },
135 {
IDC_BUTTON_Xe2,
'@',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_PURP, },
136 {
IDC_BUTTON_Xe3,
'#',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_PURP, },
137 {
IDC_BUTTON_NF,
'!',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_PURP, },
138 {
IDC_BUTTON_LEFTPAR,
'(',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_PURP, },
139 {
IDC_BUTTON_RIGHTPAR,
')',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_PURP, },
140 {
IDC_BUTTON_MOD,
'%',
MAKE_BITMASK5( 1, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
141 {
IDC_BUTTON_PERCENT,
'%',
MAKE_BITMASK5( 1, 0, 0, 0, 1, 0, 0),
CALC_CLR_BLUE, },
143 {
IDC_BUTTON_DAT,
VK_INSERT,
MAKE_BITMASK5( 0, 1, 0, 1, 1, 1, 1),
CALC_CLR_BLUE, },
144 {
IDC_BUTTON_EQU,
VK_RETURN,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
145 {
IDC_BUTTON_CANC,
VK_ESCAPE,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
146 {
IDC_BUTTON_CE,
VK_DELETE,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
147 {
IDC_BUTTON_BACK,
VK_BACK,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1),
CALC_CLR_RED, },
148 {
IDC_RADIO_HEX,
VK_F5,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1), -1, },
149 {
IDC_RADIO_DEC,
VK_F6,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1), -1, },
150 {
IDC_RADIO_OCT,
VK_F7,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1), -1, },
151 {
IDC_RADIO_BIN,
VK_F8,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1), -1, },
152 {
IDC_BUTTON_SIGN,
VK_F9,
MAKE_BITMASK5( 0, 0, 0, 1, 1, 1, 1),
CALC_CLR_BLUE, },
393 unsigned short int s;
405 if (
s >=
'a' &&
s <=
'z')
408 if (
vk >=
'A' &&
vk <=
'Z' &&
423 unsigned short int ch;
474#ifdef USE_KEYBOARD_HOOK
531 if (++
n ==
t && *(
p-1) !=
_T(
'-')) {
582 unsigned int i = 0,
n;
985 if (
upd[
x].idm == idm)
1032 char *fromClipboard;
1034 if (hData !=
NULL) {
1036 if (fromClipboard[0])
1105 while (
p->next !=
NULL)
1164#ifndef ENABLE_MULTI_PRECISION
1202#ifndef DISABLE_HTMLHELP_SUPPORT
1206 memset(&popup, 0,
sizeof(popup));
1207 popup.cbStruct =
sizeof(HH_POPUP);
1208 popup.clrForeground = 1;
1209 popup.clrBackground = -1;
1212 popup.rcMargins.top = -1;
1213 popup.rcMargins.bottom = -1;
1214 popup.rcMargins.left = -1;
1215 popup.rcMargins.right = -1;
1275 if (lpBtnInfo !=
NULL)
1383 int *pnCtrls = (
int *)
lParam;
1384 int nCtrls = *pnCtrls;
1392 *pnCtrls = ++nCtrls;
1430#ifdef DISABLE_HTMLHELP_SUPPORT
1438#ifdef USE_KEYBOARD_HOOK
1506 TCHAR infotitle[100];
1507 TCHAR infotext[200];
1514#ifndef DISABLE_HTMLHELP_SUPPORT
1897#ifdef USE_KEYBOARD_HOOK
1922 case WM_THEMECHANGED:
1929#if defined(__GNUC__) && !defined(__REACTOS__)
1984#ifndef USE_KEYBOARD_HOOK
ACPI_SIZE strlen(const char *String)
#define IDD_DIALOG_STANDARD
#define IDM_VIEW_CONVERSION
#define IDM_VIEW_STANDARD
#define IDD_DIALOG_CONVERSION
#define IDC_BUTTON_RIGHTPAR
#define IDD_DIALOG_SCIENTIFIC
#define IDR_MENU_SCIENTIFIC_2
#define IDC_COMBO_CATEGORY
#define IDR_MENU_SCIENTIFIC_1
#define IDC_BUTTON_PERCENT
#define IDM_VIEW_SCIENTIFIC
#define IDC_BUTTON_LEFTPAR
#define IDC_BUTTON_CONVERT
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow)
#define RegCloseKey(hKey)
void rpn_2pi(calc_number_t *c)
void run_operator(calc_node_t *result, calc_node_t *a, calc_node_t *b, unsigned int operation)
void rpn_ln(calc_number_t *c)
void start_rpn_engine(void)
void rpn_pi(calc_number_t *c)
void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base)
void rpn_free(calc_number_t *c)
void rpn_sinh(calc_number_t *c)
type_DrawThemeParentBackground calc_DrawThemeParentBackground
void rpn_frac(calc_number_t *c)
void apply_int_mask(calc_number_t *a)
void convert_text2number_2(calc_number_t *a)
void rpn_tan(calc_number_t *c)
type_OpenThemeData calc_OpenThemeData
void rpn_dec2dms(calc_number_t *c)
void ConvExecute(HWND hWnd)
void rpn_sqrt(calc_number_t *c)
void rpn_exp3(calc_number_t *c)
void rpn_exp2(calc_number_t *c)
void HtmlHelp_Start(HINSTANCE hInstance)
void Theme_Start(HINSTANCE hInstance)
void rpn_int(calc_number_t *c)
void rpn_cbrt(calc_number_t *c)
void rpn_alloc(calc_number_t *c)
void rpn_asin(calc_number_t *c)
void rpn_sin(calc_number_t *c)
void rpn_reci(calc_number_t *c)
void exec_change_infix(void)
void rpn_exp(calc_number_t *c)
void rpn_sign(calc_number_t *c)
void rpn_atan(calc_number_t *c)
void rpn_asinh(calc_number_t *c)
void rpn_cosh(calc_number_t *c)
void rpn_ave2(calc_number_t *c)
void rpn_fact(calc_number_t *c)
void rpn_log(calc_number_t *c)
void rpn_zero(calc_number_t *c)
void exec_closeparent(calc_number_t *)
void ConvAdjust(HWND hWnd, int n_cat)
void rpn_acos(calc_number_t *c)
type_DrawThemeBackground calc_DrawThemeBackground
void rpn_s(calc_number_t *c)
void rpn_tanh(calc_number_t *c)
int eval_parent_count(void)
void rpn_sum(calc_number_t *c)
int rpn_is_zero(calc_number_t *c)
void rpn_dms2dec(calc_number_t *c)
int exec_infix2postfix(calc_number_t *, unsigned int)
void rpn_ave(calc_number_t *c)
type_IsThemeBackgroundPartiallyTransparent calc_IsThemeBackgroundPartiallyTransparent
void rpn_s_m1(calc_number_t *c)
void convert_real_integer(unsigned int base)
void rpn_cos(calc_number_t *c)
void rpn_sum2(calc_number_t *c)
#define WM_HANDLE_CLIPBOARD
void stop_rpn_engine(void)
type_CloseThemeData calc_CloseThemeData
void rpn_copy(calc_number_t *dst, calc_number_t *src)
void rpn_exp10(calc_number_t *c)
void rpn_acosh(calc_number_t *c)
void rpn_atanh(calc_number_t *c)
type_IsThemeActive calc_IsThemeActive
type_IsAppThemed calc_IsAppThemed
void rpn_not(calc_number_t *c)
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
VOID WINAPI InitCommonControls(void)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLint GLint GLint GLint x
GLenum GLuint GLenum GLsizei const GLchar * buf
GLboolean GLboolean GLboolean GLboolean a
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
#define HH_DISPLAY_TEXT_POPUP
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
struct task_struct * current
static unsigned int number
static HMODULE MODULEINFO DWORD cb
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static LRESULT CALLBACK KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
#define VER_PLATFORM_WIN32_WINDOWS
#define VER_PLATFORM_WIN32s
#define REG_OPTION_NON_VOLATILE
#define LOCALE_USER_DEFAULT
#define STRSAFE_FILL_ON_FAILURE
struct tagTRACKMOUSEEVENT TRACKMOUSEEVENT
_CRTIMP char *__cdecl _strupr(_Inout_z_ char *_String)
ULONG dwOSVersionInfoSize
unsigned int prev_operator
unsigned int sThousand_len
TCHAR buffer[MAX_CALC_SIZE]
unsigned int last_operator
TCHAR source[MAX_CALC_SIZE]
unsigned int sDecimal_len
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define WriteProfileString
DWORD WINAPI GetCurrentThreadId(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define GetTextExtentPoint32
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
static int get_modifiers(HWND hWnd)
static const WORD operator_codes[]
static void load_config(void)
#define MAKE_BITMASK5(_transl, _is_stats, _is_ctrl, _show_b16, _show_b10, _show_b8, _show_b2)
static LRESULT post_key_press(LPARAM lParam, WORD idc)
static void run_lpar(calc_number_t *c)
static const key2code_t key2code_base10[]
static int vk2ascii(unsigned int vk)
static void update_lcd_display(HWND hwnd)
static void update_radio(HWND hwnd, unsigned int base)
#define MAKE_BITMASK4(_show_b16, _show_b10, _show_b8, _show_b2)
static void UpdateNumberIntl(void)
static INT_PTR CALLBACK DlgMainProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
static void prepare_rpn_result(calc_number_t *rpn, TCHAR *buffer, int size, int base)
static void convert_text2number(calc_number_t *a)
static void run_mm(calc_number_t *c)
static void update_menu(HWND hWnd)
static void handle_copy_command(HWND hWnd)
struct BTNINFO * LPBTNINFO
static void build_operand(HWND hwnd, DWORD idc)
static char * ReadConversion(const char *formula)
static void run_dat_sta(calc_number_t *number)
static WPARAM idm_2_idc(int idm)
static const key2code_t key2code_base16[]
void(* rpn_callback1)(calc_number_t *)
static void update_n_stats_items(HWND hWnd, TCHAR *buffer, size_t cbBuffer)
static void CopyMemToClipboard(void *ptr)
static INT_PTR CALLBACK OnSettingChange(HWND hWnd, WPARAM wParam, LPARAM lParam)
static void update_memory_flag(HWND hWnd, BOOL mem_flag)
static void run_canc(calc_number_t *c)
static INT_PTR CALLBACK DlgStatProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
static void SaveRegInt(LPCTSTR lpszApp, LPCTSTR lpszKey, int iValue)
static void delete_stat_item(int n)
static void run_mp(calc_number_t *c)
static INT_PTR CALLBACK HotButtonProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
static const struct _update_check_menus upd[]
static int LoadRegInt(LPCTSTR lpszApp, LPCTSTR lpszKey, int iDefault)
static void enable_allowed_controls(HWND hwnd, DWORD base)
static void save_config(void)
static const key3code_t key2code[]
static void update_parent_display(HWND hWnd)
static void clean_stat_list(void)
static const radio_config_t radio_setup[]
static char * handle_sequence_input(HWND hwnd, sequence_t *seq)
static BOOL CALLBACK EnumChildProc(HWND hWnd, LPARAM lParam)
static char * ReadClipboard(void)
#define HTMLHELP_PATH(_pt)
static void run_ms(calc_number_t *c)
static const function_table_t function_table[]
static void run_mw(calc_number_t *c)
static void run_fe(calc_number_t *number)
static void handle_context_menu(HWND hWnd, WPARAM wp, LPARAM lp)
static void display_rpn_result(HWND hwnd, calc_number_t *rpn)
static int process_vk_key(WPARAM wParam, LPARAM lParam)
static void set_rpn_result(HWND hwnd, calc_number_t *rpn)
static void run_rpar(calc_number_t *c)
static statistic_t * upload_stat_number(int n)
static LRESULT CALLBACK SubclassButtonProc(HWND hWnd, WPARAM wp, LPARAM lp)
#define HKEY_CURRENT_USER
HWND WINAPI GetFocus(void)
struct tagDRAWITEMSTRUCT * LPDRAWITEMSTRUCT
BOOL WINAPI IsWindow(_In_opt_ HWND)
#define WM_CTLCOLORSTATIC
HMENU WINAPI CreatePopupMenu(void)
HKL WINAPI GetKeyboardLayout(_In_ DWORD)
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
void WINAPI mouse_event(_In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ ULONG_PTR)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI DrawFrameControl(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
BOOL WINAPI CloseClipboard(void)
_Check_return_ BOOL WINAPI GetKeyboardState(_Out_writes_(256) PBYTE lpKeyState)
BOOL WINAPI OpenClipboard(_In_opt_ HWND)
BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT)
HANDLE WINAPI GetClipboardData(_In_ UINT)
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)
BOOL WINAPI EmptyClipboard(void)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
BOOL WINAPI IsWindowEnabled(_In_ HWND)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI DestroyMenu(_In_ HMENU)
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
SHORT WINAPI GetAsyncKeyState(_In_ int)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define SendDlgItemMessage
int WINAPI ToAsciiEx(_In_ UINT, _In_ UINT, _In_reads_opt_(256) CONST BYTE *, _Out_ LPWORD, _In_ UINT, _In_opt_ HKL)
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
int WINAPI GetSystemMetrics(_In_ int)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
BOOL WINAPI IsClipboardFormatAvailable(_In_ UINT)
HMENU WINAPI GetMenu(_In_ HWND)