Click here to Skip to main content
15,897,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Backing up the windows Registry Pin
ThatsAlok19-Sep-05 3:27
ThatsAlok19-Sep-05 3:27 
QuestionWindows Service with network access Pin
Anonymous14-Sep-05 0:05
Anonymous14-Sep-05 0:05 
AnswerRe: Windows Service with network access Pin
22491714-Sep-05 1:22
22491714-Sep-05 1:22 
QuestionAbout Cursor Blinking : Plz Help Pin
parims13-Sep-05 23:53
parims13-Sep-05 23:53 
AnswerRe: About Cursor Blinking : Plz Help Pin
Nishad S14-Sep-05 0:12
Nishad S14-Sep-05 0:12 
GeneralRe: About Cursor Blinking : Plz Help Pin
parims14-Sep-05 0:38
parims14-Sep-05 0:38 
Questionproblem getting imported function name Pin
gamitech13-Sep-05 23:38
gamitech13-Sep-05 23:38 
QuestionRefreshing Dialog Window(more explanation) Pin
a_david12313-Sep-05 23:38
a_david12313-Sep-05 23:38 
AnswerRe: Refreshing Dialog Window(more explanation) Pin
khan++14-Sep-05 0:09
khan++14-Sep-05 0:09 
QuestionDrag and Drop Pin
Hachaso13-Sep-05 23:32
Hachaso13-Sep-05 23:32 
QuestionProblem with FileIOCompletionRoutine ??? Pin
HumanOsc13-Sep-05 23:08
HumanOsc13-Sep-05 23:08 
AnswerRe: Problem with FileIOCompletionRoutine ??? Pin
cmk14-Sep-05 12:08
cmk14-Sep-05 12:08 
GeneralRe: Problem with FileIOCompletionRoutine ??? Pin
HumanOsc14-Sep-05 22:14
HumanOsc14-Sep-05 22:14 
QuestionDownload web pages Pin
Daniel Strigl13-Sep-05 22:44
Daniel Strigl13-Sep-05 22:44 
AnswerRe: Download web pages Pin
ThatsAlok13-Sep-05 23:07
ThatsAlok13-Sep-05 23:07 
QuestionPls Help how to read from windows(edit box) Pin
tejaswi-teja13-Sep-05 22:35
tejaswi-teja13-Sep-05 22:35 
AnswerRe: Pls Help how to read from windows(edit box) Pin
toxcct13-Sep-05 22:39
toxcct13-Sep-05 22:39 
GeneralRe: Pls Help how to read from windows(edit box) Pin
tejaswi-teja13-Sep-05 23:43
tejaswi-teja13-Sep-05 23:43 
GeneralRe: Pls Help how to read from windows(edit box) Pin
toxcct14-Sep-05 0:50
toxcct14-Sep-05 0:50 
JokeRe: Pls Help how to read from windows(edit box) Pin
ThatsAlok14-Sep-05 1:39
ThatsAlok14-Sep-05 1:39 
GeneralRe: Pls Help how to read from windows(edit box) Pin
toxcct14-Sep-05 1:46
toxcct14-Sep-05 1:46 
JokeRe: Pls Help how to read from windows(edit box) Pin
ThatsAlok14-Sep-05 18:05
ThatsAlok14-Sep-05 18:05 
GeneralRe: Pls Help how to read from windows(edit box) Pin
14-Sep-05 0:55
suss14-Sep-05 0:55 
please look into the below code equivalent to then pvevious one after removing all the redundant lines. please let meknow about: given any window how to obtain information of all the data present in the window.
please suggest me a method or any example code to do the following
requirement is as below:

input: window
Output:
details of various items present in the window and their content as far as possible.

Maincallingfunction()
{

WND * wndparent,*wndchild1,*wndchild2;
wndparent = Findwindow("WindowName");
cwndchild1= wndparent->GetTopWindow();

while(wncdhild1!= NULL)
{
GetWindowContent(wndchild,wndparent);
wndchild2= wndchild1->GetTopWindow();

while(wncdhild2!= NULL)
{
GetWindowContent(wndchild,wndparent);
wndchild2= wndchild2->GetNextWindow()
}
wndchild1= wndchild1->GetNextWindow();
}

}


void GetWindowContent(CWnd *WndActiveChild ,CWnd *WndParent)
{
CWnd * WndActiveChildRead;
CEdit *WndEdit;
LPTSTR EditText;
COleDataObject ClipObj;
tagSTGMEDIUM *strVar;
LPCTSTR lpctFormat;
int ControlID,WinCount = 0;
CString rString,temprString,text;

// code starting from here

WndActiveChild->SetForegroundWindow();
WndActiveChild->SetFocus();


ControlID = WndActiveChild->GetDlgCtrlID();
WndActiveChild->GetWindowText(rString);

AfxMessageBox(rString);
}







-- modified at 7:13 Wednesday 14th September, 2005
GeneralRe: Pls Help how to read from windows(edit box) Pin
ThatsAlok14-Sep-05 1:39
ThatsAlok14-Sep-05 1:39 
AnswerRe: Pls Help how to read from windows(edit box) Pin
ky_rerun14-Sep-05 16:22
ky_rerun14-Sep-05 16:22 

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.