Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Pls Help how to read from windows(edit box) Pin
ThatsAlok14-Sep-05 17:59
ThatsAlok14-Sep-05 17:59 
QuestionVisual Studio function comments Pin
MartinWA13-Sep-05 22:28
MartinWA13-Sep-05 22:28 
AnswerRe: Visual Studio function comments Pin
Anonymous13-Sep-05 23:20
Anonymous13-Sep-05 23:20 
Questionerror LNK2001 Pin
momer13-Sep-05 22:00
momer13-Sep-05 22:00 
QuestionMessageBox, Help needed Pin
pradish13-Sep-05 21:47
pradish13-Sep-05 21:47 
AnswerRe: MessageBox, Help needed Pin
Nishad S13-Sep-05 23:26
Nishad S13-Sep-05 23:26 
AnswerRe: MessageBox, Help needed Pin
Frank K14-Sep-05 0:32
Frank K14-Sep-05 0:32 
AnswerRe: MessageBox, Help needed Pin
ThatsAlok14-Sep-05 1:45
ThatsAlok14-Sep-05 1:45 
Questionrefreshing the dialog window Pin
a_david12313-Sep-05 21:11
a_david12313-Sep-05 21:11 
AnswerRe: refreshing the dialog window Pin
toxcct13-Sep-05 21:16
toxcct13-Sep-05 21:16 
QuestionInteract with Windows Services Pin
13-Sep-05 21:02
suss13-Sep-05 21:02 
AnswerRe: Interact with Windows Services Pin
prasad_som14-Sep-05 0:03
prasad_som14-Sep-05 0:03 
QuestionRe: Interact with Windows Services Pin
ThatsAlok14-Sep-05 1:27
ThatsAlok14-Sep-05 1:27 
AnswerRe: Interact with Windows Services Pin
prasad_som14-Sep-05 21:00
prasad_som14-Sep-05 21:00 
GeneralRe: Interact with Windows Services Pin
ThatsAlok14-Sep-05 21:50
ThatsAlok14-Sep-05 21:50 

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.