Hi,
I am unable to hide an edit control on a property page using ShowWIndow(SW_HIDE). For the edit controlI have defined a control variable
noOldZipBackups of type CEdit .Then I have tried noOldZIpBackups.ShowWIndow(SW_HIDE), and also tried using the Item ID GetDlgItem(IDC_NOOLDZIPBACKUPS)->ShowWindow(SW_HIDE).I also tried hiding using the window handle of control.
I have traced execution of the program in the debugger but could not point out the problem. Problem appears with any edit control on the page.
I am calling the hide logic in the handler of a list box and also in the WM_PAINT handler of other controls on the property page.
The ShowWindow call is in the main user interface thread and not in a worker thread.
I have also tried ShowWindowAsync but still could not hide the control.