Click here to Skip to main content
15,867,686 members

Comments by Shao Voon Wong (Top 200 by date)

Shao Voon Wong 22-Mar-24 3:05am View    
You can try m_MyVariable.SetWindowText("Testing"); to see if it works. If the text does not change, it means it is a variable for different control.
Shao Voon Wong 19-Mar-24 23:26pm View    
It helps if you can upload your project to GitHub if it is not confidential or reproduce the problem in a simple project and upload it for others to check for you. Or else we can only guess.
Shao Voon Wong 19-Mar-24 21:28pm View    
The color of your dialog box is a different problem. Is it a custom-drawn control you are trying to hide?
Shao Voon Wong 19-Mar-24 19:36pm View    
Please search for "m_MyVariable.ShowWindow(SW_SHOW);" in your codebase. There might be some of these calls that undo your "m_MyVariable.ShowWindow(SW_HIDE);".
Shao Voon Wong 19-Mar-24 7:04am View    
I just tried m_Ctrl.ShowWindow(SW_HIDE); to hide an EditBox. It works for me. I suspect your control is not created correctly.