Re: Removing the OK button from the title bar
- From: r_z_aret@xxxxxxxxxxxx
- Date: Wed, 05 Mar 2008 13:33:27 -0500
On Wed, 5 Mar 2008 09:06:01 -0800, Nikhil
<Nikhil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
When I create a dialog which is the main dialog of the application, there is
a 'OK' button created automatically. I have seen a couple of forums which
talk on how to get rid of it. One of the method is as follows:
ModifyStyle(0, WS_NONAVDONEBUTTON, SWP_NOSIZE);
::SHDoneButton(m_hWnd, SHDB_HIDE); //m_hWnd is handle of my dialog
Have you tried changing focus away from your dialog and back? I just
checked F1 Help (the help that pops up when you press F1 in eVC), and
see that the change doesn't become visible until next time the dialog
_becomes_ the foreground window.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.
- Prev by Date: Re: Removing the OK button from the title bar
- Next by Date: Re: GetStockObject in Windows CE
- Previous by thread: Re: Removing the OK button from the title bar
- Index(es):