BOOL xpt_IsThemed(XPTHANDLE xptHandle) { if (!xptHandle) return FALSE; mir_cslock lck(xptCS); return xpt_IsValidHandle(xptHandle) && ((XPTObject*)xptHandle)->hThemeHandle; }
void xpt_FreeThemeHandle(XPTHANDLE xptHandle) { mir_cslock lck(xptCS); if (xpt_IsValidHandle(xptHandle)) { XPTObject* xptObject = (XPTObject*)xptHandle; _sttXptCloseThemeData(xptObject); mir_free(xptHandle); xptObjectList.remove(xptObjectList.indexOf(xptObject)); } }
BOOL xpt_IsThemed(XPTHANDLE xptHandle) { BOOL res = FALSE; if (!xptHandle) return FALSE; xptlock(); { if (xpt_IsValidHandle(xptHandle) && ((XPTObject*) xptHandle)->hThemeHandle) res = TRUE; } xptunlock(); return res; }