Re: Not to display "OK" button

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If you want to "not" show it sometimes, but show it other times you can always use ShowWindow(SW_SHOW) or ShowWindow(SW_HIDE) as well. I tend to just disable controls that are used sometimes, but not valid at other times. For example, one might disable the OK button until it's actually OK to exit the dialog, leaving the Cancel button available in case the user wants an escape route. The same is true for Next, Previous, and other kinds of buttons indicating that we are moving off the dialog.

Tom

"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message news:cb0t23dmq11rjo7i2jde46vlf64i3bv9b1@xxxxxxxxxx
Delete it? Sounds like a start...
joe

On 24 Apr 2007 03:28:05 -0700, lucky <Laxmanmaruthy@xxxxxxxxx> wrote:

Hi

I want the dialog not to display the "OK" button at the top left
corner.
So what should i do for this.......
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

.


Quantcast