///////////////////////////////////////////////////////////////////////////////
-// Name: msw/caret.cpp
+// Name: src/msw/caret.cpp
// Purpose: MSW implementation of wxCaret
// Author: Vadim Zeitlin
// Modified by:
// Created: 23.05.99
// RCS-ID: $Id$
-// Copyright: (c) wxWindows team
+// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// headers
// ---------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "caret.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// macros
// ---------------------------------------------------------------------------
-#define CALL_CARET_API(api, args) \
- if ( !api args ) \
- wxLogLastError(_T(#api))
+#define CALL_CARET_API(api, args) \
+ if ( !api args ) \
+ { \
+ wxLogLastError(wxT(#api)); \
+ }
// ===========================================================================
// implementation
CALL_CARET_API(CreateCaret, (GetWinHwnd(GetWindow()), 0,
m_width, m_height));
- m_hasCaret = TRUE;
+ m_hasCaret = true;
}
return m_hasCaret;
{
if ( m_hasCaret )
{
- m_hasCaret = FALSE;
+ m_hasCaret = false;
CALL_CARET_API(DestroyCaret, ());
}
{
if ( m_hasCaret )
{
- m_hasCaret = FALSE;
+ m_hasCaret = false;
CALL_CARET_API(DestroyCaret, ());
MSWCreateCaret();
OnSetFocus();