I want to make a ws_visible invisible. For this, I tried removing the ws_visible from the resource file. Also, processing WM_INITDIALOG and ShowWindow or SetWindowLong. But nothing seems to be helping....
Can anyone please help......
I want to make a ws_visible invisible. For this, I tried removing the ws_visible from the resource file. Also, processing WM_INITDIALOG and ShowWindow or SetWindowLong. But nothing seems to be helping....
Can anyone please help......
follow the instructions below -
- do not use the styles, use a call to ShowWindow().
- you cannot do it from onInitDialog() (it's possible but it's not recommended).
The dialog is invisible at that time anyways, but later on it is shown, so you must "hit" it later on.
I was also facing the similar issue, instead of making show window invisible, it was being visible. That's because I did not update the changes. Here's what I did then -
myControl.ShowWindow(SW_HIDE);
UpdateWindow();
Bookmarks