Click here to Skip to main content
14,030,041 members
Rate this:
Please Sign up or sign in to vote.
See more:

In an older (MSVC++6.0) project I used HideControl(edt1) to hide the filename edit control in a CFileDialog derrived class, which worked fine at the time.

When I compile this project with MSDEV2008, the code complies OK but control is no longer hidden.

Other controls that I have hidden appear to work OK, its just 'edt1' that wont go away!

Heres my code:
<br />BOOL CFolderDialog::OnInitDialog() <br />{<br />	CFileDialog::OnInitDialog();<br />	GetParent()->;SetWindowText(_T("Select Folder"));<br />	SetControlText(IDOK, _T("OK"));<br /><br />	// Hide the "Save As" static text and list control<br />	// Hide the "File Type" static text and the combobox<br />	HideControl(stc2);<br />	HideControl(stc3);<br />	HideControl(cmb1);<br />	HideControl(edt1);<br />	return TRUE;<br />}<br />

Anyone else come across this? :(



1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Using Spy++ on a sample application I just built, it would seem that instead of edt1, you now want to use cmb13 (0x47c). I guess they decided that as that field is (now) actually a combo-box, that would be a better ID to use.

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190419.4 | Last Updated 13 Aug 2009
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100