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

C / C++ / MFC

 
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 
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 

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.