]> git.saurik.com Git - wxWidgets.git/blob - src/msw/basemsw.cpp
don't compile generic wxMessageDialog w/ GTK+2, it's not used (forgot to commit this)
[wxWidgets.git] / src / msw / basemsw.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: msw/basemsw.cpp
3 // Purpose: misc stuff only used in console applications under MSW
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 22.06.2003
7 // RCS-ID: $Id$
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
9 // License: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // for compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #ifndef WX_PRECOMP
28 #endif //WX_PRECOMP
29
30 #include "wx/apptrait.h"
31
32 #include "wx/msw/private.h"
33
34 // ============================================================================
35 // wxConsoleAppTraits implementation
36 // ============================================================================
37
38 void wxConsoleAppTraits::AlwaysYield()
39 {
40 MSG msg;
41 while ( ::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) )
42 ;
43 }
44
45 void *wxConsoleAppTraits::BeforeChildWaitLoop()
46 {
47 // nothing to do here
48 return NULL;
49 }
50
51 void wxConsoleAppTraits::AfterChildWaitLoop(void * WXUNUSED(data))
52 {
53 // nothing to do here
54 }
55
56 bool wxConsoleAppTraits::DoMessageFromThreadWait()
57 {
58 // nothing to process here
59 return true;
60 }
61