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

Reply
 
Thread Tools

Title of another window
Old 12.05.2004, 01:40   #1
Младенец
 
Join Date: 05 2004
Location: pakistan
Age: 41
Posts: 14
Rep Power: 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

Old 12.05.2004, 06:10   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Blog Entries: 16
Rep Power: 7
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




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 10:01.
Top

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