?
Solved

Preventing minimizing using Show Desktop

Posted on 2007-10-02
2
Medium Priority
?
333 Views
Last Modified: 2013-12-04
I have an AppBar window in my application. I want it to be Visible also when user minimizes all Windows using shortcut Windows+M (or Windows + D) or Show Desktop button in Quick Lunch toolbar.

Preventing minimizing when user uses those keyboard shortcuts is quite simple and needs receiving WM_SIZE message, I think. But I have no idea how can I have my AppBar visible when user clicks Show Desktop button. I know that Show Desktop first minimize all windows and then change Z-Order to get Desktop Window as a front window. I've read some solutions (like changing application parent window to Progman) but none of them works. I use one application (not mine) that behaves exactly like I need - stays visible all the time and it's also AppBar window.

Your solution?
0
Comment
Question by:JacekH
2 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 1000 total points
ID: 20004481
the trick is like you say, setting the app parent window to program manager.

I've tested this here and it works:

procedure TForm14.Button1Click(Sender: TObject);
begin
 Windows.SetParent(Handle, FindWindow(nil, 'Program Manager'));
end;


be aware that this is a kind of hackisch way, there is no 'official' way of achieving this.
0
 

Author Comment

by:JacekH
ID: 20004529
Well, I don't know why it didn't worked on another computer I've tested last night. Now it works... So thank you, your solution is accepted.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question