]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/apptrait.h
move SendSizeEvent() down to wxWindow from wxFrame; added SendSizeEventToParent(...
[wxWidgets.git] / include / wx / msw / apptrait.h
... / ...
CommitLineData
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$
8// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9// Licence: wxWindows licence
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
19class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
20{
21public:
22 virtual wxEventLoopBase *CreateEventLoop();
23 virtual void *BeforeChildWaitLoop();
24 virtual void AlwaysYield();
25 virtual void AfterChildWaitLoop(void *data);
26#if wxUSE_TIMER
27 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
28#endif
29 virtual bool DoMessageFromThreadWait();
30 virtual WXDWORD WaitForThread(WXHANDLE hThread);
31#ifndef __WXWINCE__
32 virtual bool CanUseStderr() { return true; }
33 virtual bool WriteToStderr(const wxString& text);
34#endif // !__WXWINCE__
35};
36
37#if wxUSE_GUI
38
39class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
40{
41public:
42 virtual wxEventLoopBase *CreateEventLoop();
43 virtual void *BeforeChildWaitLoop();
44 virtual void AlwaysYield();
45 virtual void AfterChildWaitLoop(void *data);
46#if wxUSE_TIMER
47 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
48#endif
49 virtual bool DoMessageFromThreadWait();
50 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
51 virtual WXDWORD WaitForThread(WXHANDLE hThread);
52
53#ifndef __WXWINCE__
54 virtual bool CanUseStderr();
55 virtual bool WriteToStderr(const wxString& text);
56#endif // !__WXWINCE__
57};
58
59#endif // wxUSE_GUI
60
61#endif // _WX_MSW_APPTRAIT_H_