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
 
Back
Top