57 #define DECLARE_CONV_CAT(_category) \ 58 { IDS_CONV_##_category, conv_##_category }, 60 #define DECLARE_CONV_UNIT(_category, _unit, _from, _to ) \ 61 { IDS_##_category##_##_unit, _from, _to }, 63 #define DECLARE_CONV_END \ 137 DECLARE_CONV_UNIT(AREA, SQUARE_FATHOMS_HUNGARY,
"$*3.59665080366244",
"$/3.59665080366244")
162 DECLARE_CONV_UNIT(CONSUMPTION, MILES_GALLON_UK,
"$*1.609344/4.54609",
"$/1.609344*4.54609")
163 DECLARE_CONV_UNIT(CONSUMPTION, MILES_GALLON_US,
"$*1.609344/3.785411784",
"$/1.609344*3.785411784")
209 DECLARE_CONV_UNIT(ENERGY, FOOT_POUNDS,
"$*1.3558179483314004",
"$/1.3558179483314004")
328 DECLARE_CONV_UNIT(POWER, FPS_PER_MINUTE,
"$*0.02259696580552333",
"$/0.02259696580552333")
329 DECLARE_CONV_UNIT(POWER, HORSEPOWER,
"$*745.69987158227022",
"$/745.69987158227022")
static const conv_t conv_LENGTH[]
static const conv_t conv_TEMPERATURE[]
int _tcscmp(const _TCHAR *s1, const _TCHAR *s2)
static const conv_t conv_PRESSURE[]
void ConvAdjust(HWND hWnd, int n_cat)
static const conv_t conv_ANGLE[]
static const conv_t conv_VOLUME[]
#define SendDlgItemMessage
static const conv_t conv_ENERGY[]
#define DECLARE_CONV_UNIT(_category, _unit, _from, _to)
void ConvExecute(HWND hWnd)
#define MICROSECONDS(micros)
#define NANOSECONDS(nanos)
static const conv_t conv_CURRENCY[]
static const conv_t conv_AREA[]
#define IDC_COMBO_CATEGORY
#define DECLARE_CONV_CAT(_category)
static const conv_t conv_VELOCITY[]
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
const char * formula_from
static const conv_t conv_WEIGHT[]
#define WEIGHT(stat, opt)
static const conv_category_t conv_table[]
static const conv_t conv_TIME[]
static const conv_t conv_POWER[]
#define MILLISECONDS(milli)
static const conv_t conv_CONSUMPTION[]