When the property sheet shows up, by default it has the Apply button visible and disabled. Often, we don’t need the Apply button at all. Removing the button is a one liner and here’s how. After you create the property sheet object just add the PSH_NOAPPLYNOW flag.
propsheet.m_psh.dwFlags |= PSH_NOAPPLYNOW;