Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to allow a user to minimize or resize an IDeskBand #49

Open
amtopel opened this issue Mar 9, 2021 · 2 comments
Open

Comments

@amtopel
Copy link

amtopel commented Mar 9, 2021

Hi, I had a general question about Explorer toolbars and was wondering if you could help. Do you know if it's possible to hide/minimize/resize a toolbar dynamically?

I've been experimenting and can't figure out if it's possible. Simply hiding the toolbar's hwnd does not work. In that case, the toolbar will be hidden, but the host window will still be there, so there will be just a blank rectangle.

So I tried IOleCommandTarget::Exec with DBID_BANDINFOCHANGED, and I was able to successfully trigger a new call to GetBandInfo. But it appears that providing new values won't change the host position. It seems that the ones provided on startup always govern, though maybe I'm doing something wrong.

Do you know the trick to get something like this to work? Thanks for any help.

@stefankueng
Copy link
Owner

I don't think this is possible. Simply because MS often blocks apps and especially plugins to change what a user can configure. So when the user places your deskband somewhere it should maybe stay there.

@amtopel
Copy link
Author

amtopel commented Mar 9, 2021

Okay, thanks. But then what's the purpose or effect of calling IOleCommandTarget::Exec with DBID_BANDINFOCHANGED?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants