Armenian Knowledge Base  

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

LinkBack Thread Tools
Old 12.05.2004, 02:40   #1
Join Date: 05 2004
Location: pakistan
Age: 34
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.

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?

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

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

Thread Tools

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

All times are GMT. The time now is 15:58.

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