Hiding the Apply button

CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

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;

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read