Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
SetWindowPos is not working on Vista and Windoes 7 Posted by little_dexter on 20 Jul 2010 at 3:11 PM
I am writing a native code in C to launch internet explorer and then disable task switching (alt+tab, windows key and alt+f4 are disabled). Also, the browser's z-order is set to the maximum so that it always remains on top by using SetWindowPos() api call in Windows api. The code works perfect on XP but on Vista and 7, the only the task switching is disabled (alt_tab, windows key , alt_f4) but the browsers z-order is not set to max. I am able to bring other windows on top of the browser after I click ctrl_alt_del to open the task manager. This works fine in XP but not in windows 7 and vista.

Any thoughts on why this is happening?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.