Esempio n. 1
0
File: table.c Progetto: mity/mctrl
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;
}
Esempio n. 2
0
File: grid.c Progetto: UIKit0/mctrl
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;
}