Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check boxes in CTreeCtrl Pin
Tomasz Sowinski2-May-01 23:15
Tomasz Sowinski2-May-01 23:15 
GeneralRe: Check boxes in CTreeCtrl Pin
Steve Driessens3-May-01 14:36
Steve Driessens3-May-01 14:36 
GeneralRe: Check boxes in CTreeCtrl Pin
Tomasz Sowinski3-May-01 23:42
Tomasz Sowinski3-May-01 23:42 
GeneralRe: Check boxes in CTreeCtrl Pin
Steve Driessens4-May-01 0:21
Steve Driessens4-May-01 0:21 
QuestionDo I HAVE to install MDAC for Office 2000? Pin
Matt Philmon2-May-01 12:02
Matt Philmon2-May-01 12:02 
GeneralProblem With Auto Complet. Pin
Ghasrfakhri2-May-01 9:32
Ghasrfakhri2-May-01 9:32 
GeneralRe: Problem With Auto Complet. Pin
Michael Dunn2-May-01 9:53
sitebuilderMichael Dunn2-May-01 9:53 
GeneralGetting hwnd of a child window Pin
Rukhsar2-May-01 8:03
Rukhsar2-May-01 8:03 
Does anyone know how to get a handle to a mdi child window WITHOUT MAKING IT ACTIVE?
Take a look at this code:

CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild;
CMyView *pView;
CMyDoc *doc;
CString findWindow = "My1";// this is the title of the window i want to find
while(TRUE){
pChild = (CMDIChildWnd *)pFrame->GetActiveFrame();
pView = CMyView *) pChild->GetActiveView();
doc = (CMyDoc *) pView->GetDocument();

CString str;
str = doc->GetTitle();

//if screen title is the same as node text, return.
if(findWindow.Compare(str) == 0)
return TRUE;

pFrame->MDINext();
}

This code works great, it will find the child window that has the same title as the one i pass to it.
however, it will make all the open windows active when, method MDINext() will go to next child
and will activate that child, i don't want that, i want it to search through all window without
activating them.
I used LockWindowUpdate on pFrame after calling MDINext() but it did not work,
any idea?
Thanks,

****Rukhsar
GeneralRe: Getting hwnd of a child window Pin
Stephen Caldwell2-May-01 14:36
Stephen Caldwell2-May-01 14:36 
GeneralKeeping process out of task manager Pin
Daníel B. Sigurgeirsson2-May-01 6:45
Daníel B. Sigurgeirsson2-May-01 6:45 
GeneralRe: Keeping process out of task manager Pin
Tomasz Sowinski2-May-01 23:19
Tomasz Sowinski2-May-01 23:19 
GeneralRe: Keeping process out of task manager Pin
yamini3-May-01 0:30
yamini3-May-01 0:30 
GeneralRe: Keeping process out of task manager Pin
Daníel B. Sigurgeirsson4-May-01 3:39
Daníel B. Sigurgeirsson4-May-01 3:39 
GeneralRe: Keeping process out of task manager Pin
Tomasz Sowinski4-May-01 3:55
Tomasz Sowinski4-May-01 3:55 
GeneralRe: Keeping process out of task manager Pin
Tomasz Sowinski4-May-01 4:07
Tomasz Sowinski4-May-01 4:07 
GeneralRe: Keeping process out of task manager Pin
Daníel B. Sigurgeirsson4-May-01 4:50
Daníel B. Sigurgeirsson4-May-01 4:50 
GeneralRe: Keeping process out of task manager Pin
Tomasz Sowinski4-May-01 10:06
Tomasz Sowinski4-May-01 10:06 
GeneralRe: Keeping process out of task manager Pin
Daníel B. Sigurgeirsson7-May-01 2:48
Daníel B. Sigurgeirsson7-May-01 2:48 
GeneralTrying to make a program bulletproof Pin
Daníel B. Sigurgeirsson2-May-01 6:39
Daníel B. Sigurgeirsson2-May-01 6:39 
GeneralChild Windows Pin
2-May-01 6:08
suss2-May-01 6:08 
GeneralRe: Child Windows Pin
Cathy2-May-01 7:57
Cathy2-May-01 7:57 
GeneralRe: Child Windows Pin
Will Nolan2-May-01 22:24
Will Nolan2-May-01 22:24 
GeneralRe: Child Windows Pin
F.Dost3-May-01 4:50
F.Dost3-May-01 4:50 
GeneralRe: Child Windows Pin
Cathy4-May-01 5:14
Cathy4-May-01 5:14 
GeneralGradiant Color Filling in Irregular Shape Pin
SriSubbu2-May-01 5:57
professionalSriSubbu2-May-01 5:57 

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.