Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

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)
WindowsMessageBox_sinkwrite (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


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.

References fastformat::util::concat_slices().

Referenced by fastformat::sinks::fmt_slices().

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 Library documentation © Matthew Wilson, 2006-2009 SourceForge.net Logo