home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 December
/
PCWorld_2002-12_cd.bin
/
Software
/
Komercni
/
Baltik
/
katB.exe
/
katB
/
DESIGN
/
DESIGN_C.CAR
< prev
next >
Wrap
Text File
|
2002-09-22
|
2KB
|
67 lines
////////////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------------//
//-----project DESINGER, copyright 2002 Libor Bareτ-------------------------//
//----------------------------------------------------------------------------//
////////////////////////////////////////////////////////////////////////////////
//
// API functions for caret support
//
//
POINT m_CaretPosition;
int m_nCaretHeight;
int m_nCaretShow;
char m_bCaretState=0;
void DrawCaret(){
GrNastavBarvuPop²edí(1);
HideMouse();
GrNastavLinku(36/*1|0x20|4*/);
GrKresliLinku(m_CaretPosition.left,m_CaretPosition.top,m_CaretPosition.left,m_CaretPosition.top+m_nCaretHeight);
m_bCaretState = !m_bCaretState;
GrNastavLinku(21/*1|0x10|4*/);
ShowMouse();
}
void DestroyCaret(){
if(m_bCaretState != 0)DrawCaret();
m_nCaretShow = 0;
m_bCaretState = 0;
m_ProtectedTimer[0/*IDT_CARETTIMER*/]=0;
}
#define CreateCaret(x) m_nCaretHeight = x
void HideCaret(){
if(m_bCaretState != 0)DrawCaret();
m_nCaretShow = 0;
m_bCaretState = 0;
}
void ShowCaret(){
m_nCaretShow = 1;
m_bCaretState = 0;
m_ProtectedTimer[0/*IDT_CARETTIMER*/]=8;
m_ProtectedTimerTime[0/*IDT_CARETTIMER*/]=Systémov∞Tikot();
m_ProtectedTimerCount[0/*IDT_CARETTIMER*/]=0;
}
void SetCaretPos(int x, int y){
if(m_bCaretState != 0)DrawCaret();
SetPoint(&m_CaretPosition,x,y);
}
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////