Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Making another window modal Pin
Ravi Bhavnani1-Sep-01 9:32
professionalRavi Bhavnani1-Sep-01 9:32 
GeneralRe: Making another window modal Pin
James Bird1-Sep-01 21:58
James Bird1-Sep-01 21:58 
GeneralDetecting when a process is idle Pin
Alex Deem1-Sep-01 6:31
Alex Deem1-Sep-01 6:31 
GeneralRe: Detecting when a process is idle Pin
Michael Dunn1-Sep-01 7:59
sitebuilderMichael Dunn1-Sep-01 7:59 
GeneralRe: Detecting when a process is idle Pin
Alex Deem1-Sep-01 18:43
Alex Deem1-Sep-01 18:43 
GeneralRe: Detecting when a process is idle Pin
Tomasz Sowinski3-Sep-01 0:07
Tomasz Sowinski3-Sep-01 0:07 
GeneralCom drag and drop Pin
1-Sep-01 6:28
suss1-Sep-01 6:28 
QuestionA question about windows?? Pin
1-Sep-01 5:14
suss1-Sep-01 5:14 
If app1 wanted to read the values of app2, it could do so with the following code.
This code will show me the value of labels and buttons, but not data controls
like edit boxes.

Can 1 app read the values of data controls of a second app, or is it some kind of windows
protection mechanism???

thanks


CWnd* pParent = FindWindow(NULL, pcszAppName);
if(pParent && IsWindow(pParent->m_hWnd))
{
CWnd* pChild = pParent->GetWindow(GW_CHILD);
while(pChild)
{
pChild->GetWindowText(strControlText);
TRACE("%s\n", strControlText);
m_ctlReadList.AddString(strControlText);
pChild = pChild->GetWindow(GW_HWNDNEXT);
}
}
Laugh | :laugh:
AnswerRe: A question about windows?? Pin
1-Sep-01 7:30
suss1-Sep-01 7:30 
GeneralRe: A question about windows?? Pin
1-Sep-01 15:33
suss1-Sep-01 15:33 
GeneralFull Screen Window Pin
1-Sep-01 2:49
suss1-Sep-01 2:49 
GeneralRe: Full Screen Window Pin
The_Server1-Sep-01 2:55
The_Server1-Sep-01 2:55 
GeneralRe: Full Screen Window Pin
NormDroid1-Sep-01 3:07
professionalNormDroid1-Sep-01 3:07 
GeneralRe: Full Screen Window Pin
Mukkie2-Sep-01 10:51
Mukkie2-Sep-01 10:51 
GeneralDevStudio Add-ins question Pin
The_Server1-Sep-01 2:47
The_Server1-Sep-01 2:47 
GeneralRe: DevStudio Add-ins question Pin
Michael P Butler1-Sep-01 8:50
Michael P Butler1-Sep-01 8:50 
GeneralAbout FAT32 Pin
Maer72731-Aug-01 20:16
Maer72731-Aug-01 20:16 
GeneralAbout debug version and release version. Pin
Aaron031431-Aug-01 17:04
Aaron031431-Aug-01 17:04 
GeneralRe: About debug version and release version. Pin
31-Aug-01 19:31
suss31-Aug-01 19:31 
GeneralRe: About debug version and release version. Pin
Aaron03141-Sep-01 17:52
Aaron03141-Sep-01 17:52 
GeneralRe: About debug version and release version. Pin
Chris Losinger1-Sep-01 18:49
professionalChris Losinger1-Sep-01 18:49 
QuestionEfficient Code? Pin
A.R.31-Aug-01 13:58
A.R.31-Aug-01 13:58 
AnswerRe: Efficient Code? Pin
Christian Graus31-Aug-01 14:22
protectorChristian Graus31-Aug-01 14:22 
AnswerRe: Efficient Code? Pin
31-Aug-01 18:37
suss31-Aug-01 18:37 
AnswerRe: Efficient Code? Pin
Igor Sukhov1-Sep-01 12:02
Igor Sukhov1-Sep-01 12:02 

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.