Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 12.05.2004, 02:40   #1
Младенец
 
Join Date: 05 2004
Location: pakistan
Age: 33
Posts: 14
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post Title of another window

Hi to all:
How to know the title of another window.

Example:
I open two windows in my desktop, one is notpad and other is my VC Program. How can i come to know the title of notpad throw VC program?

Burhan
Reply With Quote
Old 12.05.2004, 07:10   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

There is function in MFC/WIN32 API - GetWindowText(...). And there is a function - EnumWindows(...), which you can use to retrieve all desktop windows. So once you retrieve each window, you can use GetWindowText to see the caption of the window.

Hope it helps.
Reply With Quote
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 19:46.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.