Click here to Skip to main content
15,881,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Mutex Pin
Rajkumar R13-Mar-08 3:50
Rajkumar R13-Mar-08 3:50 
GeneralRe: Mutex Pin
Rajkumar R13-Mar-08 4:04
Rajkumar R13-Mar-08 4:04 
GeneralRe: Mutex Pin
Mark Salsbery13-Mar-08 7:16
Mark Salsbery13-Mar-08 7:16 
GeneralGetting first element of TCHAR string Pin
neha.agarwal2713-Mar-08 2:00
neha.agarwal2713-Mar-08 2:00 
GeneralRe: Getting first element of TCHAR string Pin
Chris Losinger13-Mar-08 2:26
professionalChris Losinger13-Mar-08 2:26 
QuestionRe: Getting first element of TCHAR string Pin
Rajkumar R13-Mar-08 2:36
Rajkumar R13-Mar-08 2:36 
GeneralGet the caption of active window... Pin
ptr_Electron13-Mar-08 1:19
ptr_Electron13-Mar-08 1:19 
GeneralRe: Get the caption of active window... Pin
Demian Panello13-Mar-08 1:32
Demian Panello13-Mar-08 1:32 
I don't know what exactly are you trying to do. But for the code you've posted I see the following:

GetActiveWindow() return a HWND handle, there are not members functions to access from it. So, after saving your handle like this:

HWND hwnd = GetActiveWindow();

Then you could call GetWindowText like this:

GetWindowText(hwnd, strCap, sizeof(strCap))

Demian.

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."

-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )

GeneralRe: Get the caption of active window... Pin
krmed13-Mar-08 2:04
krmed13-Mar-08 2:04 
GeneralRe: Get the caption of active window... Pin
Demian Panello13-Mar-08 2:36
Demian Panello13-Mar-08 2:36 
GeneralRe: Get the caption of active window... Pin
Rajkumar R13-Mar-08 1:35
Rajkumar R13-Mar-08 1:35 
GeneralRe: Get the caption of active window... Pin
Rajesh R Subramanian13-Mar-08 1:44
professionalRajesh R Subramanian13-Mar-08 1:44 
GeneralRe: Get the caption of active window... Pin
Rajkumar R13-Mar-08 2:06
Rajkumar R13-Mar-08 2:06 
GeneralRe: Get the caption of active window... Pin
Rajesh R Subramanian13-Mar-08 2:14
professionalRajesh R Subramanian13-Mar-08 2:14 
QuestionRe: Get the caption of active window... Pin
CPallini13-Mar-08 4:24
mveCPallini13-Mar-08 4:24 
GeneralRe: Get the caption of active window... Pin
Rajkumar R13-Mar-08 4:45
Rajkumar R13-Mar-08 4:45 
GeneralRe: Get the caption of active window... Pin
ptr_Electron13-Mar-08 2:38
ptr_Electron13-Mar-08 2:38 
GeneralRe: Get the caption of active window... Pin
CPallini13-Mar-08 4:27
mveCPallini13-Mar-08 4:27 
GeneralRe: Get the caption of active window... Pin
Rajkumar R13-Mar-08 5:26
Rajkumar R13-Mar-08 5:26 
GeneralRe: Get the caption of active window... Pin
CPallini13-Mar-08 8:12
mveCPallini13-Mar-08 8:12 
GeneralRe: Get the caption of active window... Pin
Rajkumar R13-Mar-08 8:41
Rajkumar R13-Mar-08 8:41 
GeneralRe: Get the caption of active window... Pin
CPallini13-Mar-08 10:41
mveCPallini13-Mar-08 10:41 
GeneralColored Text in win32 window Pin
Member 382549313-Mar-08 0:48
Member 382549313-Mar-08 0:48 
GeneralRe: Colored Text in win32 window Pin
Demian Panello13-Mar-08 0:54
Demian Panello13-Mar-08 0:54 
GeneralRe: Colored Text in win32 window Pin
CPallini13-Mar-08 1:36
mveCPallini13-Mar-08 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.