Are using CStdDialogImpl as the base class for your WTL dialogs? Are you having difficulty hiding the "ok" button? Here's a simple solution:
Derive your dialog class (say CMyDialog) from
CStdDialogImpl<CMyDialog, SHIDIF_SIZEDLGFULLSCREEN | SHIDIF_SIPDOWN>
On the OnInitDialog handler, call:
SHDoneButton(m_hWnd, SHDB_HIDE);
ModifyStyle(0, WS_NONAVDONEBUTTON, SWP_NOSIZE);
Make sure you change all the calls to CStdDialogImpl<CMyDialog> methods with the new base (you can use a typedef for that).
Wednesday, October 01, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
Would you let me know how to change CStdDialogImpl CMyDialog methods with the new base using typedef?
Thank you very much for your help. I got it.
Post a Comment