Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Active

Status
Not open for further replies.

lGOOODl

Programmer
Dec 4, 2001
31
DK
Hi,

How can I detect if my window is active or not .... whitout MFC ...

Thx
GOOOD
 
Hi,

Use the following code
HWND hWnd = GetActiveWindow();
GetWindowText(hWnd,string,lengthofstring);

The string will have the active window caption name check it with your window caption name.

I think this will solve your problem.
Thanks,

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top