// Modified by:
// Created: 23.05.99
// RCS-ID: $Id$
-// Copyright: (c) wxWindows team
+// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// macros
// ---------------------------------------------------------------------------
-// under Win16 the caret APIs are void but under Win32 they may return an
-// error code which we want to check - this macro does just this
-#ifdef __WIN16__
- #define CALL_CARET_API(api, args) api args
-#else // Win32
- #define CALL_CARET_API(api, args) \
+#define CALL_CARET_API(api, args) \
if ( !api args ) \
wxLogLastError(_T(#api))
-#endif // Win16/32
// ===========================================================================
// 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();