- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know a simple way to hide or otherwise make invisible a control (eg a combobox) item within a dialogue panel ?
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Statically (from the dialog editor): uncheck the "Visible" check box.
Dynamically (from the code):
You might also be interested in this.
Dynamically (from the code):
USE DFWIN
ShowWindow(GetDlgItem(Dlg%hWnd, IDC_COMBO1), SW_SHOW/SW_HIDE)This will work only while the dialog is active (i.e. after DlgModal or DlgModeless, not before), that is, from callback routines. To initialize a control to non-default-visible state, you have to do it from a dialog-initialization callback (DLG_INIT)
You might also be interested in this.
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page