Source file: /~heha/ewa/Ofen/prozess.zip/msvc/o1/wutils.h

#pragma once
// Allgemeine Hilfsroutinen — hier ohne Klassen
#include <windows.h>
#include <windowsx.h>
#define elemof(x) (sizeof(x)/sizeof(*(x)))
//#define T(x) TEXT(x)	// beißt sich mit Template-Definitionen
#define nobreak

void SetCheckboxGroup(HWND,UINT,UINT,UINT,UINT=0);
UINT GetCheckboxGroup(HWND,UINT,UINT,UINT* =0);
UINT GetRadioCheck(HWND,UINT,UINT);
// Zahl in String
int d2s(char*,double,int=0);
int dec2s(char*,short,int);
int time2s(char*,UINT,int);
int bin2s(char*,UINT,char=8);
int bin2s2(char*,UINT,UINT,char=8);
int hex2s(char*,UINT,char=4);
// String in Zahl
bool s2d(char*,double&);
bool s2dec(char*,short&,int);
bool s2time(char*,WORD&,int);
bool s2bin(char*,BYTE&);
bool s2bin2(char*,BYTE&,BYTE&);
bool s2bin(char*,WORD&);
bool s2hex(char*,WORD&);
bool s2hex(char*,DWORD&);

inline void setmax(int&a, int b) {if (a<b) a=b;}
inline void setmin(int&a, int b) {if (a>b) a=b;}
inline void setmax(LONG&a, LONG b) {if (a<b) a=b;}
inline void setmin(LONG&a, LONG b) {if (a>b) a=b;}
inline void setmax(float&a, float b) {if (a<b) a=b;}
inline void setmax(UINT&a, UINT b) {if (a<b) a=b;}

template<class T> T*newcopy(const T*p,size_t l);
char*newstr(const char*s);

extern char DecimalChar;
Detected encoding: UTF-80