Hi André,
that code is in an else-case of an other "if (!(uFlags & DFCS_TRANSPARENT))"
In that case, can't you remove the ternary operation in this line? UITOOLS95_DrawRectEdge(dc, r, edge, (uFlags & DFCS_FLAT) | ((uFlags & DFCS_TRANSPARENT) ? 0 : BF_MIDDLE) | BF_RECT | BF_SOFT); --Juan