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 void *BeforeChildWaitLoop();
23 virtual void AlwaysYield();
24 virtual void AfterChildWaitLoop(void *data
);
26 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
28 virtual bool DoMessageFromThreadWait();
29 virtual WXDWORD
WaitForThread(WXHANDLE hThread
);
34 class WXDLLIMPEXP_CORE wxGUIAppTraits
: public wxGUIAppTraitsBase
37 virtual void *BeforeChildWaitLoop();
38 virtual void AlwaysYield();
39 virtual void AfterChildWaitLoop(void *data
);
41 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
43 virtual bool DoMessageFromThreadWait();
44 virtual wxPortId
GetToolkitVersion(int *majVer
, int *minVer
) const;
45 virtual WXDWORD
WaitForThread(WXHANDLE hThread
);
50 #endif // _WX_MSW_APPTRAIT_H_