Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rukhsar

@Rukhsar
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting hwnd of a child window
    R Rukhsar

    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

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups