Apply Skins To All Windows
In a web browser app which makes use of the Web Browser control, users can change the skin of the browser. Similar to IE6, users can open a new browser window by navigating to the File--->New menu or right-click a link to open the link in a new page.
Assume that while using a skin, a user opens a new window (by either of the 2 ways stated above). But when the new window opens, it doesn't reflect the current skin that is already being used by the user.
How do I open the new window so that it renders the skin that the user is using currently?
Re: Apply Skins To All Windows
Are the skins controlled by your application? In other words, if you had the window handle, could your code apply the skin? This web app is your project, not IE or NetScape or something else? More details please.
Re: Apply Skins To All Windows
Yes the skins are controlled by my app - not IE or Netscape or any other app
Re: Apply Skins To All Windows
I think the easiest option is for your app to write to the registry, the current skin for the user. Every time user changes the skin, update the registry. If not the registry, then write to a file in a known location. Every time a new browser opens, read that file or registry and get the skin name.
Now if the user changes skins and it is to be applied to all open browsers, then you will want to enumerate the current desktop windows looking for your application instances and then apply the changes. This may require some thoughts on how your apps can receive custom messages and how to identify your apps when enumerating the windows.
Re: Apply Skins To All Windows
Sounds like you have created your own skin for your app only?