Advertisement

07.22.2008 at 01:19AM PDT, ID: 23584408
[x]
Attachment Details

Detect state of a windows that has been hidden thrue SW_HIDE?

Asked by sibliege in Delphi Programming Language

Tags: Borland, Delphi, 7

Hi!
I have writed a code to Show/Hide a specific external Program.
I have also made a keyboard shortcut to directly hide or show the program.
But to switch between hide and show I need to get the state of my external window program.

Based on code after, How can I know if hwndWinamp is hidden or showed???

Thanks,Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
var GGHandle : THandle;
classname: array[0..255] of char;
var hwndWinamp : THandle;
begin
GGHandle := FindWindow(nil,'External Appz');
GetClassName(GGHandle,ClassName,SizeOf(ClassName));
hwndWinamp := FindWindow(classname,nil);
ShowWindow(hwndWinamp, SW_SHOW);
or
ShowWindow(hwndWinamp, SW_HIDE);
[+][-]07.22.2008 at 04:51AM PDT, ID: 22058299

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Delphi Programming Language
Tags: Borland, Delphi, 7
Sign Up Now!
Solution Provided By: ziolko
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628