示例

以下示例展示了如何确定 OIA 是否指示键盘处于插入方式。

//-------------------------------------------------------------------
// ECLOIA::IsInsertMode
//
// Determine status of connection 'A' OIA indicator
//-------------------------------------------------------------------
void Sample54() {
 
ECLOIA OIA('A');   // OIA object for connection A
 
if (OIA.IsInsertMode())
  printf("InsertMode.\n");
else
  printf("Not InsertMode.\n");
 
} // end sample