Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to suspended other program's Main Window? Pin
wangningyu13-Nov-09 16:47
wangningyu13-Nov-09 16:47 
AnswerRe: How to suspended other program's Main Window? Pin
enhzflep14-Nov-09 13:20
enhzflep14-Nov-09 13:20 
QuestionSet Dynamic content on webbrowser control Pin
Arnon A13-Nov-09 10:35
Arnon A13-Nov-09 10:35 
QuestionLNK2019 error, unresolved external symbol __thiscall Pin
Dan Senior13-Nov-09 10:15
Dan Senior13-Nov-09 10:15 
AnswerRe: LNK2019 error, unresolved external symbol __thiscall Pin
Garth J Lancaster13-Nov-09 11:29
professionalGarth J Lancaster13-Nov-09 11:29 
GeneralRe: LNK2019 error, unresolved external symbol __thiscall Pin
Dan Senior23-Nov-09 11:25
Dan Senior23-Nov-09 11:25 
GeneralRe: LNK2019 error, unresolved external symbol __thiscall Pin
Garth J Lancaster23-Nov-09 11:54
professionalGarth J Lancaster23-Nov-09 11:54 
QuestionHow to read text from a status bar (CStatus) of another application ? Pin
hongheo7613-Nov-09 10:14
hongheo7613-Nov-09 10:14 
I need to read the text in the status bar of another application. The status bar class is Afx:StatusBar:400000.xxxx, so I guess it's the MFC CStatusBar object.

I have an existing piece of code that can read standard Windows status bars (class: msctls_statusbar32) fine. This piece uses SendMessage (SB_GETTEXT) as follows:

- Length=SendMessage(hStatusbar, SB_GETTEXTLENGTH, Index, 0); // Get the length of the text
- Allocate the buffer based on Length
- SendMessage(hStatusbar, SB_GETTEXT, Index, (LPARAM) Buffer);
// Index = the pane number of the status bar to retrieve the text
// Buffer = the place to store the text

(I've omitted all details about allocating memory in the remote process and copy data back and forth).

However, it doesn't seem to work with the Afx:StatusBar (as said earlier, it worked for msctls_statusbar32).

I would really appreciate it if someone could tell me how to get the text in CStatusBar.

Thanks a lot
AnswerRe: How to read text from a status bar (CStatus) of another application ? Pin
Hadi Dayvary13-Nov-09 22:05
professionalHadi Dayvary13-Nov-09 22:05 
GeneralRe: How to read text from a status bar (CStatus) of another application ? Pin
hongheo7614-Nov-09 4:20
hongheo7614-Nov-09 4:20 
GeneralRe: How to read text from a status bar (CStatus) of another application ? Pin
Hadi Dayvary14-Nov-09 4:32
professionalHadi Dayvary14-Nov-09 4:32 
GeneralRe: How to read text from a status bar (CStatus) of another application ? Pin
hongheo7614-Nov-09 4:38
hongheo7614-Nov-09 4:38 
Questionre:Using waitformultipleobjects? Pin
Alan Kurlansky13-Nov-09 8:56
Alan Kurlansky13-Nov-09 8:56 
AnswerRe: re:Using waitformultipleobjects? Pin
«_Superman_»13-Nov-09 9:08
professional«_Superman_»13-Nov-09 9:08 
GeneralRe: re:Using waitformultipleobjects? Pin
Alan Kurlansky13-Nov-09 9:31
Alan Kurlansky13-Nov-09 9:31 
GeneralRe: re:Using waitformultipleobjects? Pin
«_Superman_»13-Nov-09 9:52
professional«_Superman_»13-Nov-09 9:52 
GeneralRe: re:Using waitformultipleobjects? Pin
Alan Kurlansky13-Nov-09 10:28
Alan Kurlansky13-Nov-09 10:28 
QuestionThe SHCreateDirectoryEx function. Pin
iMikki13-Nov-09 6:47
iMikki13-Nov-09 6:47 
AnswerRe: The SHCreateDirectoryEx function. Pin
«_Superman_»13-Nov-09 6:51
professional«_Superman_»13-Nov-09 6:51 
GeneralRe: The SHCreateDirectoryEx function. [modified] Pin
iMikki13-Nov-09 6:56
iMikki13-Nov-09 6:56 
GeneralRe: The SHCreateDirectoryEx function. Pin
«_Superman_»13-Nov-09 7:09
professional«_Superman_»13-Nov-09 7:09 
GeneralRe: The SHCreateDirectoryEx function. Pin
iMikki13-Nov-09 7:12
iMikki13-Nov-09 7:12 
GeneralRe: The SHCreateDirectoryEx function. Pin
«_Superman_»13-Nov-09 7:49
professional«_Superman_»13-Nov-09 7:49 
GeneralRe: The SHCreateDirectoryEx function. Pin
iMikki13-Nov-09 8:02
iMikki13-Nov-09 8:02 
GeneralRe: The SHCreateDirectoryEx function. Pin
Patcher3213-Nov-09 8:41
Patcher3213-Nov-09 8:41 

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.