Sign in to follow this  
Followers 0
quaizywabbit

Restoring Menu visibility

5 posts in this topic

when adding $WS_CHILD to a window that has a menu, the menu will disappear.

when removing $WS_CHILD from the same window, what is necessary to restore the menu back to its initial state?


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites



I'd figure one of the Dev's knows.......


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

Call GetMenu() to get a handle to the menu, do your thing, then call SetMenu() to add the menu back. Its untested and those are obviously Windows API calls. The names may also be wrong as I haven't used them in awhile but should be close enough to get you to the documentation on MSDN.

Share this post


Link to post
Share on other sites

Thanks Valik!


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Works like a charm, Valik!

Thanks again!! :whistle:

I posted an example Here

Edited by quaizywabbit

[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0