wxSizerFlags& Border(int direction, int borderInPixels)
{
wxCHECK_MSG( !(direction & ~wxALL), *this,
- wxS("direction must be a combination of wxDirection enum "
- "values.") );
+ wxS("direction must be a combination of wxDirection ")
+ wxS("enum values.") );
m_flags &= ~wxALL;
m_flags |= direction;
// wxTaskBarIconWindow: helper window
// ----------------------------------------------------------------------------
-// NB: this class serves two purposes:
-// 1. win32 needs a HWND associated with taskbar icon, this provides it
-// 2. we need wxTopLevelWindow so that the app doesn't exit when
-// last frame is closed but there still is a taskbar icon
+// We need a HWND to create a taskbar icon, so create a special hidden window
+// just to be able to use its HWND.
class wxTaskBarIconWindow : public wxFrame
{
public:
{
}
+ // This implicitly created window shouldn't prevent the application from
+ // exiting if all its other windows are closed.
+ virtual bool ShouldPreventAppExit() const { return false; }
+
+protected:
WXLRESULT MSWWindowProc(WXUINT msg,
WXWPARAM wParam, WXLPARAM lParam)
{