- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages
- Examples

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# WindowsMessageBox_sink Class Reference

`#include <fastformat/sinks/WindowsMessageBox.hpp>`

List of all members.

## Detailed Description

Sink for sending a statement to Windows' `MessageBox()`.

## Public Member Functions
| WindowsMessageBox_sink (HWND hwnd, ff_char_t const *caption, UINT type)
| Constructs an instance of the sink.
| WindowsMessageBox_sink (WindowsMessageBox_sink const &rhs)
| Copy constructor.
WindowsMessageBox_sink & | write (int, size_t cchTotal, size_t numResults, ff_string_slice_t const *results)
| Coallesces the slices and invokes `MessageBox()` with the result.
| operator int () const
| Implicit conversion operator for retrieving the `MessageBox()` return code.

## Constructor & Destructor Documentation

WindowsMessageBox_sink | ( | HWND | hwnd,
|  | ff_char_t const * | caption,
|  | UINT | type |
| ) |  |  | `[inline]`

Constructs an instance of the sink.

Parameters:

  | hwnd | Handle of the message box's owner window, or NULL if no owner
  | caption | The string to be used as the message box's title
  | type | Flags controlling the contents and behaviour of the message box, passed through to the underlying `MessageBox()` call

WindowsMessageBox_sink | ( | WindowsMessageBox_sink const & | rhs | ) |

Copy constructor.

## Member Function Documentation

WindowsMessageBox_sink& write | ( | int | ,
|  | size_t | cchTotal,
|  | size_t | numResults,
|  | ff_string_slice_t const * | results |
| ) |  |  | `[inline]`

Coallesces the slices and invokes `MessageBox()` with the result.

operator int | ( |  | ) | const`[inline]`

Implicit conversion operator for retrieving the `MessageBox()` return code.

The documentation for this class was generated from the following file:

- fastformat/sinks/WindowsMessageBox.hpp

FastFormat Library documentation © Matthew Wilson, 2006-2009 |