reactos/sdk/lib/cicero/ciccaret.h
Katayama Hirofumi MZ 69b08be0e0
[MSCTFIME][CICERO] Half-implement CIMEUIWindowHandler (#6521)
Supporting TIPs...
JIRA issue: CORE-19360
- Add implementation to
  CIMEUIWindowHandler class.
2024-02-23 13:45:00 +09:00

34 lines
760 B
C++

/*
* PROJECT: ReactOS Cicero
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
* PURPOSE: Displaying Cicero caret
* COPYRIGHT: Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
*/
#pragma once
class CicCaret
{
protected:
HWND m_hWnd;
UINT m_uCaretBlinkTimerID;
POINT m_pt;
SIZE m_size;
BOOL m_bCaretBlinking;
BOOL m_bCaretVisible;
public:
enum { TIMER_ID = 0x4F83AF91 };
CicCaret();
virtual ~CicCaret();
operator HWND() const { return m_hWnd; }
void CreateCaret(HWND hWnd, SIZE size);
void DestroyCaret();
void HideCaret();
void InvertCaret();
void OnTimer();
void SetCaretPos(POINT pt);
void SetBlinking(BOOL bBlinking);
};