hjohari
asked on
How to hide other window program
How to hide or deactivate other running Window programs ?
When I run my application, I want to hide/deactivate all applications which active at that time.
So the only running application is my application.
Thanks,
Hendra
When I run my application, I want to hide/deactivate all applications which active at that time.
So the only running application is my application.
Thanks,
Hendra
hi,
>>dont forgent to show the windows again ..
with even the taskbar being hidden here you'd have to save those handles somewhere (maybe ini file?) as theres no WasWindowVisibleBefore_I_H id_It() api to know what was not hidden before :-)
>>dont forgent to show the windows again ..
with even the taskbar being hidden here you'd have to save those handles somewhere (maybe ini file?) as theres no WasWindowVisibleBefore_I_H
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Cesario's comment as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Thank you,
Russell
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Cesario's comment as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Thank you,
Russell
EE Cleanup Volunteer
Add this code to your OnCreate Event:
procedure tForm1.FormCreate ( Sender:TObject);
var
h:HWnd;
begin
h:=handle;
while h > 0 do
begin
if isWindowVisible(h) then
ShowWindow(h,SW_HIDE );
h:=getnextwindow(h,GW_HWND
end;
ShowWindow(handle,SW_HIDE );
end;
// dont forgent to show the windows again ;-)
Best Regards
Cesario