//static
void wxCaretBase::SetBlinkTime(int milliseconds)
{
+#ifdef __WIN16__
+ ::SetCaretBlinkTime(milliseconds) ;
+#else
if ( !::SetCaretBlinkTime(milliseconds) )
{
wxLogLastError("SetCaretBlinkTime");
}
+#endif
}
// ---------------------------------------------------------------------------
if ( !m_hasCaret )
{
+#ifdef __WIN16__
+ ::CreateCaret(GetWinHwnd(GetWindow()), 0, m_width, m_height) ;
+ m_hasCaret = TRUE;
+#else
if ( !::CreateCaret(GetWinHwnd(GetWindow()), 0, m_width, m_height) )
{
wxLogLastError("CreateCaret");
{
m_hasCaret = TRUE;
}
+#endif
}
return m_hasCaret;
{
m_hasCaret = FALSE;
+#ifdef __WIN16__
+ ::DestroyCaret() ;
+#else
if ( !::DestroyCaret() )
{
wxLogLastError("DestroyCaret");
}
+#endif
}
}
(void)MSWCreateCaret();
}
+#ifdef __WIN16__
+ ::ShowCaret(GetWinHwnd(GetWindow())) ;
+#else
if ( !::ShowCaret(GetWinHwnd(GetWindow())) )
{
wxLogLastError("ShowCaret");
}
+#endif
}
void wxCaret::DoHide()
{
if ( m_hasCaret )
{
+#ifdef __WIN16__
+ ::HideCaret(GetWinHwnd(GetWindow())) ;
+#else
if ( !::HideCaret(GetWinHwnd(GetWindow())) )
{
wxLogLastError("HideCaret");
}
+#endif
}
}
{
if ( m_hasCaret )
{
+#ifdef __WIN16__
+ ::SetCaretPos(m_x, m_y) ;
+#else
if ( !::SetCaretPos(m_x, m_y) )
{
wxLogLastError("SetCaretPos");
}
+#endif
}
//else: we don't have caret right now, nothing to do (this does happen)
}