]>
Commit | Line | Data |
---|---|---|
e2478fde VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/msw/apptrait.h | |
3 | // Purpose: class implementing wxAppTraits for MSW | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 21.06.2003 | |
7 | // RCS-ID: $Id$ | |
77ffb593 | 8 | // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> |
65571936 | 9 | // Licence: wxWindows licence |
e2478fde VZ |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_MSW_APPTRAIT_H_ | |
13 | #define _WX_MSW_APPTRAIT_H_ | |
14 | ||
15 | // ---------------------------------------------------------------------------- | |
16 | // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
bb24c68f | 19 | class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase |
e2478fde VZ |
20 | { |
21 | public: | |
22 | virtual void *BeforeChildWaitLoop(); | |
23 | virtual void AlwaysYield(); | |
24 | virtual void AfterChildWaitLoop(void *data); | |
c2ca375c VZ |
25 | #if wxUSE_TIMER |
26 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
27 | #endif | |
e2478fde | 28 | virtual bool DoMessageFromThreadWait(); |
e570a44b | 29 | virtual WXDWORD WaitForThread(WXHANDLE hThread); |
e2478fde VZ |
30 | }; |
31 | ||
32 | #if wxUSE_GUI | |
33 | ||
bb24c68f | 34 | class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase |
e2478fde VZ |
35 | { |
36 | public: | |
37 | virtual void *BeforeChildWaitLoop(); | |
38 | virtual void AlwaysYield(); | |
39 | virtual void AfterChildWaitLoop(void *data); | |
c2ca375c VZ |
40 | #if wxUSE_TIMER |
41 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
42 | #endif | |
e2478fde | 43 | virtual bool DoMessageFromThreadWait(); |
8bb6b2c0 | 44 | virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const; |
e570a44b | 45 | virtual WXDWORD WaitForThread(WXHANDLE hThread); |
e2478fde VZ |
46 | }; |
47 | ||
48 | #endif // wxUSE_GUI | |
49 | ||
50 | #endif // _WX_MSW_APPTRAIT_H_ | |
51 |