Wert: KillTimer(GetHandle(),TimerIdInformation); \
if(Motor->IsMoveFinish()) \
{ \
if(!Motor->GetAngle(1)) \
{ \
SetCursor((HCURSOR)LoadImage(NULL,IDC_WAIT,IMAGE_CURSOR,0,0,LR_DEFAULTCOLOR));\
SetTimer(GetHandle(),TimerIdInformation,AskTime,NULL);\
return TRUE; \
} \
bLongMove= FALSE; \
Motor->dAngleNew= Motor->dAngle; \
sprintf(buf,Motor->pOFmt(),Motor->dAngleNew); \
SetDlgItemText(GetHandle(),id_NewAngle,(LPSTR)buf); \
sprintf(buf,Motor->pOFmt(),Motor->dAngle); \
SetDlgItemText(GetHandle(),id_Angle,(LPSTR)buf); \
SetScrollPos(BarHandle,SB_CTL,GetBarPos(),TRUE); \
bMoveActive= FALSE; \
SetCursor((HCURSOR)LoadImage(NULL,IDC_ARROW,IMAGE_CURSOR,0,0,LR_DEFAULTCOLOR));\
} \
else \
{ \
if(bLongMove) \
{ \
Motor->GetAngle(0); \
sprintf(buf,Motor->pOFmt(),Motor->dAngle); \
SetDlgItemText(GetHandle(),id_Angle,(LPSTR)buf); \
SetScrollPos(BarHandle,SB_CTL,GetBarPos(),TRUE); \
} \
SetCursor((HCURSOR)LoadImage(NULL,IDC_WAIT,IMAGE_CURSOR,0,0,LR_DEFAULTCOLOR));\
} \
|