1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/apptrait.h
3 // Purpose: class implementing wxAppTraits for MSW
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_APPTRAIT_H_
13 #define _WX_MSW_APPTRAIT_H_
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_BASE wxConsoleAppTraits
: public wxConsoleAppTraitsBase
22 virtual wxEventLoopBase
*CreateEventLoop();
23 virtual void *BeforeChildWaitLoop();
24 virtual void AfterChildWaitLoop(void *data
);
26 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
28 virtual bool DoMessageFromThreadWait();
29 virtual WXDWORD
WaitForThread(WXHANDLE hThread
);
31 virtual bool CanUseStderr() { return true; }
32 virtual bool WriteToStderr(const wxString
& text
);
33 #endif // !__WXWINCE__
38 class WXDLLIMPEXP_CORE wxGUIAppTraits
: public wxGUIAppTraitsBase
41 virtual wxEventLoopBase
*CreateEventLoop();
42 virtual void *BeforeChildWaitLoop();
43 virtual void AfterChildWaitLoop(void *data
);
45 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
47 virtual bool DoMessageFromThreadWait();
48 virtual wxPortId
GetToolkitVersion(int *majVer
= NULL
, int *minVer
= NULL
) const;
49 virtual WXDWORD
WaitForThread(WXHANDLE hThread
);
52 virtual bool CanUseStderr();
53 virtual bool WriteToStderr(const wxString
& text
);
54 #endif // !__WXWINCE__
59 #endif // _WX_MSW_APPTRAIT_H_