]> git.saurik.com Git - wxWidgets.git/blame - src/msw/basemsw.cpp
extracted LPITEMIDLIST wrappers in a separate header (also [will be] used by wxStdnar...
[wxWidgets.git] / src / msw / basemsw.cpp
CommitLineData
e2478fde
VZ
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>
65571936 9// License: wxWindows licence
e2478fde
VZ
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"
548bf4b7
MB
31// MBN: this is a workaround for MSVC 5: if it is not #included in
32// some wxBase file, wxRecursionGuard methods won't be exported from
33// wxBase.dll, and MSVC 5 will give linker errors
34#include "wx/recguard.h"
e2478fde
VZ
35
36#include "wx/msw/private.h"
37
38// ============================================================================
39// wxConsoleAppTraits implementation
40// ============================================================================
41
42void wxConsoleAppTraits::AlwaysYield()
43{
44 MSG msg;
45 while ( ::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) )
46 ;
47}
48
49void *wxConsoleAppTraits::BeforeChildWaitLoop()
50{
51 // nothing to do here
52 return NULL;
53}
54
55void wxConsoleAppTraits::AfterChildWaitLoop(void * WXUNUSED(data))
56{
57 // nothing to do here
58}
59
60bool wxConsoleAppTraits::DoMessageFromThreadWait()
61{
62 // nothing to process here
63 return true;
64}
65