W32DLib
W32DLib Namespace Reference

W32DLib Implements a simple wrapper around some common Windows dialog functionality. More...

Classes

class  AutoCheck
 The AutoCheck class. More...
 
class  Button
 The Button class. More...
 
class  ComboBox
 The ComboBox class. More...
 
class  Common
 The Common class. More...
 
class  Control
 The base Control class. More...
 
class  DataX
 The DataX class. More...
 
class  Dialog
 The base Dialog class. More...
 
class  RadioButton
 The RadioButton class. More...
 
class  Registry
 The Registry class. More...
 
class  StaticText
 The StaticText class. More...
 
class  Text
 The Text class. More...
 
class  Window
 The base Window class. More...
 

Typedefs

typedef std::basic_string< TCHAR > W32String
 A std::string using TCHAR.
 
typedef
std::basic_stringstream< TCHAR > 
W32StringStream
 A std::stringstream using TCHAR.
 
typedef
std::basic_istringstream
< TCHAR > 
W32IStringStream
 A std::istringstream using TCHAR.
 
typedef
std::basic_ostringstream
< TCHAR > 
W32OStringStream
 A std::ostringstream using TCHAR.
 
typedef BOOL(Window::* W32DLibCallback )(UINT msg, WPARAM wp, LPARAM lp)
 The callback type for W32DLib.
 

Functions

TCHAR * W32Strcpy (TCHAR *dest, const TCHAR *src)
 String copy.
 
size_t W32Strlen (const TCHAR *src)
 String length.
 

Detailed Description

W32DLib Implements a simple wrapper around some common Windows dialog functionality.

Typedef Documentation

typedef BOOL(Window::* W32DLib::W32DLibCallback)(UINT msg, WPARAM wp, LPARAM lp)

The callback type for W32DLib.

Simply accepts the usual Windows message parameters, and generally return TRUE if the event was handled (check individual message rules in MSDN).

typedef std::basic_istringstream<TCHAR> W32DLib::W32IStringStream

A std::istringstream using TCHAR.

We use TCHAR as we use older compilers sometimes and I want this library to support older environments.

typedef std::basic_ostringstream<TCHAR> W32DLib::W32OStringStream

A std::ostringstream using TCHAR.

We use TCHAR as we use older compilers sometimes and I want this library to support older environments.

typedef std::basic_string<TCHAR> W32DLib::W32String

A std::string using TCHAR.

We use TCHAR as we use older compilers sometimes and I want this library to support older environments.

typedef std::basic_stringstream<TCHAR> W32DLib::W32StringStream

A std::stringstream using TCHAR.

We use TCHAR as we use older compilers sometimes and I want this library to support older environments.

Function Documentation

TCHAR* W32DLib::W32Strcpy ( TCHAR *  dest,
const TCHAR *  src 
)
inline

String copy.

String copy, regardless of TCHAR definition. Implemented as MinGW doesn't have some TCHAR stuff, and this just makes it properly portable.

Parameters
destDestination string.
srcSource string.
Returns
The first parameter.
size_t W32DLib::W32Strlen ( const TCHAR *  src)
inline

String length.

String length, regardless of TCHAR definition. Implemented as MinGW doesn't have some TCHAR stuff, and this just makes it properly portable.

Parameters
srcSource string.
Returns
The length of the string.