Need to make a button in a dialogbox not show at all

  • Thread starter Thread starter Franky
  • Start date Start date
F

Franky

I know about

EnableWindow(GetDlgItem( hDlg, IDCANCEL), FALSE )

which will gray a button in a dialog box.

But I want to make the button and some text to not show at all in one
instance.

Is that possible?



Thanks
 
Franky said:
I know about

EnableWindow(GetDlgItem( hDlg, IDCANCEL), FALSE )

which will gray a button in a dialog box.

But I want to make the button and some text to not show at all in one
instance.

Frankie:

ShowWindow() with SW_HIDE.

David Wilkinson
 
EnableWindow(GetDlgItem( hDlg, IDCANCEL), FALSE )
which will gray a button in a dialog box.

But I want to make the button and some text to not show at all in one
instance.

Is that possible?

Sure - use ShowWindow.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top