BOOL MCTRL_API mcTable_SetCellA(MC_HTABLE hTable, WORD wCol, WORD wRow, MC_TABLECELLA* pCell) { if(MC_ERR(table_set_cell_data(hTable, wCol, wRow, (MC_TABLECELL*)pCell, FALSE) != 0)) { MC_TRACE("mcTable_SetCellA: table_set_cell_data() failed."); return FALSE; } return TRUE; }
static int grid_set_cell(grid_t* grid, WORD col, WORD row, MC_TABLECELL* cell, BOOL unicode) { if(MC_ERR(grid->table == NULL)) { SetLastError(ERROR_INVALID_HANDLE); MC_TRACE("grid_set_cell: No table installed."); return -1; } if(MC_ERR(table_set_cell_data(grid->table, col, row, cell, unicode) != 0)) { MC_TRACE("grid_set_cell: table_set_cell_data() failed."); return -1; } return 0; }