这篇教程C++ EnumChildWindows函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中EnumChildWindows函数的典型用法代码示例。如果您正苦于以下问题:C++ EnumChildWindows函数的具体用法?C++ EnumChildWindows怎么用?C++ EnumChildWindows使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了EnumChildWindows函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: FindProjectComboBoxHWND FindProjectComboBox( void ){ EnumChildWindows( ghDeveloperStudioWnd, (WNDENUMPROC) EnumComboCbck, 0L ); if( (!ghProjectComboBox) || (!IsWindow( ghProjectComboBox ) ) ) EnumChildWindows( GetDesktopWindow(), (WNDENUMPROC) EnumComboCbck, 0L ); return ghProjectComboBox;}
开发者ID:kit-transue,项目名称:software-emancipation-discover,代码行数:7,
示例2: FindProcessesWindowVOID FindProcessesWindow(HWND hWndStart){ g_Processes = NULL; EnumChildWindows(hWndStart, FindProcessesWindowEnum, NULL); if (g_Processes != NULL) EnumChildWindows(g_Processes, FindProcessesChildWindowEnum, NULL);}
开发者ID:psouza4,项目名称:ZHider,代码行数:7,
示例3: EnumChildWindowsvoidDBListBuilder::GetDBs(HWND hwndcombo, wyBool isrefreshtrue){ // now we call the enum function and fill the combo with the databases. //Fetching the databases from MySQL(by executing Show databases) if(isrefreshtrue == wyTrue) EnumChildWindows(pGlobals->m_hwndclient, DBListBuilder::GetDBFromServers, (LPARAM)hwndcombo); else //Fetching the databases from object browser EnumChildWindows(pGlobals->m_hwndclient, DBListBuilder::GetDBFromActiveWins, (LPARAM)hwndcombo);}
开发者ID:sylarhl,项目名称:sqlgoy,代码行数:11,
示例4: EnumDesktopWinProcBOOL CALLBACK EnumDesktopWinProc(HWND hwnd, LPARAM lParam){ if (hwnd && IsWindowVisible(hwnd)/* && IsWindowEnabled(hwnd)*/) { if (0x000902F4 == (int)hwnd) { int a = 2; } RECT rect = {0}; ::GetWindowRect(hwnd, &rect); //if (rect.left > 0 && rect.top > 0 && rect.right > 0 && rect.bottom > 0) TCHAR lpWinTitle[256],lpClassName[256]; ::GetWindowTextW(hwnd,lpWinTitle,256-1); //获得窗口caption ::GetClassNameW(hwnd,lpClassName,256-1); //获得窗口类名 if (*lpWinTitle && *lpClassName) { g_winRects.push_back(rect); } EnumChildWindows(hwnd, EnumChildWinProc, NULL); return TRUE; } return TRUE;}
开发者ID:luobende,项目名称:gadgets,代码行数:25,
示例5: NewGUI_TranslateCWndBOOL CImportOptionsDlg::OnInitDialog(){ CDialog::OnInitDialog(); NewGUI_TranslateCWnd(this); EnumChildWindows(this->m_hWnd, NewGUI_TranslateWindowCb, 0); NewGUI_XPButton(m_btOK, IDB_OK, IDB_OK); NewGUI_XPButton(m_btCancel, IDB_CANCEL, IDB_CANCEL); NewGUI_ConfigSideBanner(&m_banner, this); m_banner.SetIcon(AfxGetApp()->LoadIcon(IDI_ICONPIC), KCSB_ICON_LEFT | KCSB_ICON_VCENTER); m_banner.SetTitle(TRL("Options")); m_banner.SetCaption(_T(" ")); CFontUtil::SetDefaultFontFrom(GetDlgItem(IDC_RADIO_CREATENEW)); // m_fBold.CreateFont(-10, 0, 0, 0, FW_BOLD, FALSE, FALSE, 0, // DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, // DEFAULT_QUALITY, DEFAULT_PITCH | FF_MODERN, _T("MS Shell Dlg")); // GetDlgItem(IDC_RADIO_CREATENEW)->SetFont(&m_fBold); // GetDlgItem(IDC_RADIO_OVERWRITE_ALWAYS)->SetFont(&m_fBold); // GetDlgItem(IDC_RADIO_OVERWRITE_TIMEBASED)->SetFont(&m_fBold); CFontUtil::AssignBold(GetDlgItem(IDC_RADIO_CREATENEW), this); CFontUtil::AssignBold(GetDlgItem(IDC_RADIO_OVERWRITE_ALWAYS), this); CFontUtil::AssignBold(GetDlgItem(IDC_RADIO_OVERWRITE_TIMEBASED), this); return TRUE;}
开发者ID:xt9852,项目名称:KeePassXT,代码行数:31,
示例6: DumpWindowOrdervoid DumpWindowOrder(bool aliens) {#ifndef PLATFORM_WINCE LLOG("DumpWindowOrder" << BeginIndent); EnumChildWindows(NULL, &sDumpWindow, (LPARAM)(aliens ? 1 : 0)); LLOG(EndIndent << "//DumpWindowOrder");#endif}
开发者ID:dreamsxin,项目名称:ultimatepp,代码行数:7,
示例7: Dlg_OnNOTIFYBOOL Dlg_OnNOTIFY(HWND hDlg, WPARAM wParam,LPARAM lParam){ RECT rect; int i,j; rect = TabCtrl.rect; if(((LPNMHDR) lParam)->code == TCN_SELCHANGE) { i=SendDlgItemMessage(hDlg,TAB_ID,TCM_GETCURSEL,0,0); //通过 TCM_GETCURSEL 消息获取当前被选的Tab页 MoveWindow(TabCtrl.hTabPages[i],rect.left,rect.top,rect.right-rect.left,rect.bottom-rect.top,TRUE); //将Pagei页加载到目标位置 for(j=0;j<TabCtrl.tabPageCount;j++) { if(j==i) { ShowWindow(TabCtrl.hTabPages[j],TRUE); continue; } ShowWindow(TabCtrl.hTabPages[j],FALSE); } } else if(((LPNMHDR) lParam)->code == TCN_SELCHANGING) { i=SendDlgItemMessage(hDlg,TAB_ID,TCM_GETCURSEL,0,0); EnumChildWindows(TabCtrl.hTabPages[i],EnumChildProc,0); } return TRUE;}
开发者ID:scut-luo,项目名称:Computation,代码行数:29,
示例8: GetMainWindowHandleHWND GetMainWindowHandle(DWORD processId) { if (!HeXModule()/* && !DesktopWidget()*/) { return FindWindow(GetMainWindowClassName(processId), NULL); } /*if (DesktopWidget()) { HWND desktop = FindWindow(L"Progman", NULL); desktop = GetWindow(desktop, GW_CHILD); HWND main_window = FindWindowEx(desktop, NULL, GetMainWindowClassName(processId), NULL); return main_window; }*/ seekedHandle = NULL; HWND topWindow = GetTopWindow(NULL); while (topWindow){ DWORD pid = 0; DWORD threadId = GetWindowThreadProcessId(topWindow, &pid); if (threadId != 0 && pid == processId) { EnumChildWindows(topWindow, EnumChildBrowserProc, (LPARAM)pid); if (seekedHandle) { return GetAncestor(seekedHandle, GA_ROOT); } } topWindow = GetNextWindow(topWindow, GW_HWNDNEXT); } return NULL;}
开发者ID:276361270,项目名称:hex,代码行数:28,
示例9: while// 初始化void CLog::Init(){ // 取document m_logExplorer.Navigate(_T("about:blank"), NULL, NULL, NULL, NULL); while (TRUE) { Delay(1); CComDispatchDriver disp(m_logExplorer.get_Document()); if (disp.p == NULL) continue; if (SUCCEEDED(disp->QueryInterface(&m_logDocument))) break; } // 写框架 WriteDocument(LOG_FRAME); // 屏蔽右键菜单、监听Log消息 m_explorerHwnd = m_logExplorer.m_hWnd; EnumChildWindows(m_explorerHwnd, EnumChildProc, (LPARAM)&m_explorerHwnd); s_oldExplorerWndProc = (WNDPROC)SetWindowLong(m_explorerHwnd, GWL_WNDPROC, (LONG)ExplorerWndProc); // 日志开始时间 GetLocalTime(&m_logStartTime);}
开发者ID:dariner,项目名称:TiebaManager,代码行数:26,
示例10: GetWindowChildsListPyObject *GetWindowChildsList(PyObject *self, PyObject *args){ PyObject *pyWindowList; BOOL invisible=TRUE; HWND hWndParent; if (!PyArg_ParseTuple(args, "l|B", &hWndParent, &invisible)) return NULL; pyWindowList = PyList_New(0); if (invisible) EnumChildWindows(hWndParent, (WNDENUMPROC) EnumAllWindowsProc, (LPARAM) pyWindowList); else EnumChildWindows(hWndParent, (WNDENUMPROC) EnumVisibleWindowsProc, (LPARAM) pyWindowList); return Py_BuildValue("O", pyWindowList);}
开发者ID:AssetsInc,项目名称:EventGhost,代码行数:16,
示例11: EnumChildProcExBOOL CALLBACK EnumChildProcEx(HWND hwnd, LPARAM lParam){ CString strWindowName = GetContrlWindowTextEx(hwnd); if (strWindowName.Find("应用程序错误")>0) //满足条件 { //遍历其子窗口,如果找到确定按钮,发送双击消息 WriteLog("找到错误框:"+strWindowName,0); try { CloseErrorWindowEx(hwnd); } catch (...) { } return FALSE; } else { Delay(20,&g_iExitFlag); if (g_iExitFlag == TRUE) { return FALSE; } EnumChildWindows(hwnd,EnumChildProcEx,lParam); } return TRUE; }
开发者ID:wyrover,项目名称:myhistoryprojects,代码行数:27,
示例12: CreateDialogIndirectParam/** * name: CreateWnd * class: CPsTreeItem * desc: create the dialog for the propertysheet page * params: pPs - propertysheet's datastructure * hDlg - windowhandle of the propertysheet * return: windowhandle of the dialog if successful **/HWND CPsTreeItem::CreateWnd(LPPS pPs){ if (pPs && !_hWnd && _pTemplate && _pfnDlgProc) { _hWnd = CreateDialogIndirectParam(_hInst, _pTemplate, pPs->hDlg, _pfnDlgProc, (LPARAM)_hContact); if (_hWnd != NULL) { PSHNOTIFY pshn; pshn.hdr.code = PSN_PARAMCHANGED; pshn.hdr.hwndFrom = _hWnd; pshn.hdr.idFrom = 0; pshn.lParam = (LPARAM)_initParam; SendMessage(_hWnd, WM_NOTIFY, 0, (LPARAM)&pshn); // force child window (mainly for AIM property page) SetWindowLongPtr(_hWnd, GWL_STYLE, (GetWindowLongPtr(_hWnd, GWL_STYLE) & ~(WS_POPUP|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_CAPTION|WS_SYSMENU|WS_THICKFRAME)) | WS_CHILD); SetWindowLongPtr(_hWnd, GWL_EXSTYLE, GetWindowLongPtr(_hWnd, GWL_EXSTYLE) & ~(WS_EX_APPWINDOW|WS_EX_STATICEDGE|WS_EX_CLIENTEDGE)); SetParent(_hWnd, pPs->hDlg); // move dialog into the display area SetWindowPos(_hWnd, HWND_TOP, pPs->rcDisplay.left, pPs->rcDisplay.top, pPs->rcDisplay.right - pPs->rcDisplay.left, pPs->rcDisplay.bottom - pPs->rcDisplay.top, FALSE); // set bold titles if (_dwFlags & ODPF_BOLDGROUPS) EnumChildWindows(_hWnd, BoldGroupTitlesEnumChildren, (LPARAM)pPs->hBoldFont); // some initial notifications OnInfoChanged(); OnPageIconsChanged(); return _hWnd; } } return NULL;}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:42,
示例13: EnumWindowProcBOOL CALLBACK EnumWindowProc(HWND hWnd, LPARAM lparam){ char cBuf[MAX_PATH] = ""; DWORD dwPid = 0; DWORD dwTid = GetWindowThreadProcessId(hWnd, &dwPid); if (bNoHidden) if (!IsWindowVisible(hWnd) | !IsWindowEnabled(hWnd)) return TRUE; if (dwFindPid) if (dwFindPid != dwPid) return TRUE; ++dwWndCount; printf("%i/t%i/t", dwPid, dwTid); GetClassName(hWnd, cBuf, sizeof cBuf); CharToOem(cBuf, cBuf); printf("%s//", cBuf); GetWindowText(hWnd, cBuf, sizeof cBuf); CharToOem(cBuf, cBuf); printf("%s/n", cBuf); if (bEnumChildren) EnumChildWindows(hWnd, (WNDENUMPROC)EnumChildWindowProc, 0); return TRUE;}
开发者ID:richardneish,项目名称:ltrdata,代码行数:30,
示例14: EnumChildWindowProcBOOL CALLBACKEnumChildWindowProc(HWND hWnd, LPARAM lparam){ char cBuf[MAX_PATH] = ""; int i; if (bNoHidden) if (!IsWindowVisible(hWnd) | !IsWindowEnabled(hWnd)) return TRUE; ++dwChildrenCount; ++iLevel; putch('/t'); for (i = iLevel; i; i--) putch('/t'); putch('/t'); GetClassName(hWnd, cBuf, sizeof cBuf); CharToOem(cBuf, cBuf); printf("%s//", cBuf); GetWindowText(hWnd, cBuf, sizeof cBuf); CharToOem(cBuf, cBuf); printf("%s/n", cBuf); EnumChildWindows(hWnd, (WNDENUMPROC)EnumChildWindowProc, 0); --iLevel; return TRUE;}
开发者ID:richardneish,项目名称:ltrdata,代码行数:30,
示例15: SubClassWindow/* * EnumTaskWindowsFunc: * * enumerate all task windows, and then sub-class them to point * to SubClassProc * * NOTE: this has some problems, so instead of subclassing, we call * SubClassProc directly from the message loop we go into for the debugee. * */static BOOL SubClassWindow( HWND hwnd, BOOL do_children ){ FARPROC fp; char buffer[80]; if( hwnd == NULL ) { return( 0 ); } buffer[0]=0; GetClassName( hwnd, buffer, sizeof( buffer ) ); Out((OUT_SOFT,"--- Subclass (%s), id=%04x",buffer,hwnd)); if( GetWindowWord( hwnd, GWW_HINSTANCE ) == (WORD)GetModuleHandle( "USER") ) { Out((OUT_SOFT,"--- Subclass IGNORED (USER)" )); return( 1 ); } if( buffer[0] != '#' ) { // don't subclass predefined windows classes fp = (FARPROC)SetWindowLong( hwnd, GWL_WNDPROC, (LONG)DefaultProcInstance ); SCWindows[ SCCount ].hwnd = hwnd; SCWindows[ SCCount ].oldproc = fp; SCCount++; if( do_children ) EnumChildWindows( hwnd, (WNDENUMPROC)EnumChildProcInstance, 0 ); } return( 1 );}
开发者ID:ABratovic,项目名称:open-watcom-v2,代码行数:35,
示例16: GetWindowMap//************************************// Method: LoadProcessWindow// FullName: ProcessWindowCollection::LoadProcessWindow// Access: public // Returns: bool// Qualifier:// Parameter: HWND hNewWindow_i// Parameter: const DWORD dwWindowThreadId_i//************************************bool ProcessWindowCollection::LoadProcessWindow( HWND hNewWindow_i ){ // Prepare window data PWindow pWindow = new Window; // Window details pWindow->ExtractWindowDetails( hNewWindow_i ); // Get parent child map WindowMap& wmWndMap = GetWindowMap(); PWindow pParentWindow = 0; if( wmWndMap.Lookup( pWindow->GetParentHandle(), pParentWindow ) && pParentWindow ) { // Add this window to the list of child windows of parent window pParentWindow->GetChildWindowList().AddTail( pWindow ); } else { // Add to main window list GetProcessWindowList().AddTail( pWindow ); }// End if // Insert item to map wmWndMap[pWindow->GetHandle()] = pWindow; // Get all child windows for this window EnumChildWindows( hNewWindow_i, EnumerateChildWindowsCB, reinterpret_cast<LPARAM>( &wmWndMap )); // We want more return TRUE;}
开发者ID:Mateuus,项目名称:devsrc,代码行数:43,
示例17: GetClientRectvoid ImageWnd::OnChildMove(){ int n=GetWindowedChildCount(); HWNDArray childs; childs.Add((HWND)n); childs.Add(m_hWnd); CRect result,tr,cr; GetClientRect(&cr); while(EnumChildWindows(m_hWnd, EnumChildProc,(LPARAM)&childs)); int i=2; CWnd* twnd=NULL; if( (childs.GetCount()-2)>0 ) { twnd=CWnd::FromHandle(childs[i++]); twnd->GetWindowRect(&tr); result.UnionRect(tr,tr); for(;i<childs.GetCount();i++) { twnd=CWnd::FromHandle(childs[i]); CString T; twnd->GetWindowText(T); twnd->GetWindowRect(&tr); result.UnionRect(result,tr); } } CPoint tl=result.TopLeft(), br=result.BottomRight(); ScreenToClient(&tl); ScreenToClient(&br); result=CRect(tl,br); if(cr.top!=result.top || cr.bottom!=result.bottom || cr.left!=result.left || cr.right!=result.right) { SetWindowPos(NULL,result.left,result.top,result.Width(),result.Height(), SWP_NOZORDER ); }}
开发者ID:mar80nik,项目名称:Tracker,代码行数:29,
示例18: find_top_windowstatic BOOL CALLBACK find_top_window(HWND hwnd, LPARAM lParam){ WCHAR str[1024]; HWND* pwindow; if (!GetClassNameW(hwnd, str, ARRAY_LENGTH(str)) || lstrcmpiW(str, g_window_class)) return TRUE; if (!GetWindowTextW(hwnd, str, ARRAY_LENGTH(str)) || lstrcmpiW(str, g_window_title)) return TRUE; /* Check that the window is visible and active */ if (!g_disabled) { DWORD style = GetWindowStyle(hwnd); if (!(style & WS_VISIBLE) || (style & WS_DISABLED)) return TRUE; } /* See if we find the control we want */ if (g_control_class) { HWND control = NULL; EnumChildWindows(hwnd, find_control, (LPARAM)&control); if (!control) return TRUE; hwnd=control; } pwindow = (HWND*)lParam; *pwindow = hwnd; return FALSE;}
开发者ID:GYGit,项目名称:reactos,代码行数:35,
示例19: DumpWindowOrdervoid DumpWindowOrder(bool aliens) {#ifndef PLATFORM_WINCE LLOG("DumpWindowOrder" << LOG_BEGIN); EnumChildWindows(NULL, &sDumpWindow, (LPARAM)(aliens ? 1 : 0)); LLOG(LOG_END << "//DumpWindowOrder");#endif}
开发者ID:koz4k,项目名称:soccer,代码行数:7,
示例20: IsIconicBOOL AutoSelectMode::snapshotWindows(){ for (HWND hWnd = GetTopWindow(NULL); NULL != hWnd; hWnd = GetWindow(hWnd, GW_HWNDNEXT)) { if (!IsWindow(hWnd) || !IsWindowVisible(hWnd) || IsIconic(hWnd)) { continue; } EnumChildWindows(hWnd, [](HWND hwnd, LPARAM lParam)->BOOL{ if (!IsWindow(hwnd) || !IsWindowVisible(hwnd) || IsIconic(hwnd)) { return TRUE; } RECT rcWnd = { 0 }; GetWindowRect(hwnd, &rcWnd); if (ScreenCommon::isRectEmpty(rcWnd)) { return TRUE; } wchar_t szTxt[MAX_PATH] = { 0 }; GetWindowText(hwnd, szTxt, MAX_PATH); if (wcslen(szTxt) <= 0) { //continue; } //combine the rect with the screen rect AutoSelectMode* pThis = (AutoSelectMode*)lParam; pThis->m_lsWndList.push_back(ScreenCaptureWndInfo(hwnd, rcWnd)); return TRUE; }, (LPARAM)this); RECT rcWnd = { 0 }; GetWindowRect(hWnd, &rcWnd); adjustRectInScreen(rcWnd); if (ScreenCommon::isRectEmpty(rcWnd)) { continue; } wchar_t szTxt[MAX_PATH] = { 0 }; GetWindowText(hWnd, szTxt, MAX_PATH); if (wcslen(szTxt) <= 0) { //continue; } //combine the rect with the screen rect m_lsWndList.push_back(ScreenCaptureWndInfo(hWnd, rcWnd)); } return m_lsWndList.size() > 0;}
开发者ID:hlyces,项目名称:teamtalk_TT,代码行数:60,
示例21: propBasicQueryDevice/** propBasicQueryDevice** Purpose:** Set information values for Device object type**/VOID propBasicQueryDevice( _In_ PROP_OBJECT_INFO *Context, _In_ HWND hwndDlg){ RECT rGB; LPWSTR lpItemText; if (Context == NULL) { return; } // // For performance reasons instead of query again // we use description from main object list. // lpItemText = Context->lpDescription; if (lpItemText) { //show hidden controls if (GetWindowRect(GetDlgItem(hwndDlg, ID_DEVICEINFO), &rGB)) { EnumChildWindows(hwndDlg, supEnumEnableChildWindows, (LPARAM)&rGB); } SetDlgItemText(hwndDlg, ID_DEVICEDESCRIPTION, lpItemText); }}
开发者ID:songbei6,项目名称:WinObjEx64,代码行数:33,
示例22: DoMyControlProcessingint DoMyControlProcessing(HWND hdlg,UINT message,WPARAM wParam,LPARAM lParam,INT_PTR *bReturn){ switch(message) { case WM_INITDIALOG: EnumChildWindows(hdlg,MyControlsEnumChildren,0); if(hEmfHeaderLogo==NULL) { HRSRC hRsrc=FindResourceA(hInst,MAKEINTRESOURCEA(IDE_HDRLOGO),"EMF"); HGLOBAL hGlob=LoadResource(hInst,hRsrc); hEmfHeaderLogo=SetEnhMetaFileBits(SizeofResource(hInst,hRsrc),(PBYTE)LockResource(hGlob)); } SendDlgItemMessage(hdlg,IDC_HDRLOGO,STM_SETIMAGE,IMAGE_ENHMETAFILE,(LPARAM)hEmfHeaderLogo); break; case WM_CTLCOLORSTATIC: if((GetWindowLong((HWND)lParam,GWL_STYLE)&0xFFFF)==0) { char szText[256]; GetWindowTextA((HWND)lParam,szText,sizeof(szText)); if(!strcmp(szText,"whiterect")) { SetTextColor((HDC)wParam,RGB(255,255,255)); SetBkColor((HDC)wParam,RGB(255,255,255)); SetBkMode((HDC)wParam,OPAQUE); *bReturn=(INT_PTR)GetStockObject(WHITE_BRUSH); return TRUE; } else { SetBkMode((HDC)wParam,TRANSPARENT); *bReturn=(INT_PTR)GetStockObject(NULL_BRUSH); return TRUE; } } break; } return FALSE;}
开发者ID:dineshkummarc,项目名称:miranda-im-v0.9.47-src,代码行数:33,
示例23: dcvoid BiliPlayer::OnPaint(){ CPaintDC dc(this); // device context for painting // TODO: 在此处添加消息处理程序代码 EnumChildWindows(m_hWnd, EnumChildWindowsProc, -1); // 不为绘图消息调用 CDialogEx::OnPaint()}
开发者ID:ahelloworld,项目名称:bilibili_flash_client,代码行数:7,
示例24: GetClassNameLPWSTR CSubAction::GetPathFromExplorer(){ if (!IsUnicodeSystem()) { // Global shortcuts won't even work in non-unicode systems return NULL; } HWND hCurWindow=GetForegroundWindow(); char szClass[100]=""; GetClassName(hCurWindow,szClass,100); if (strcmp(szClass,"ExploreWClass")!=0 && // WinXP strcmp(szClass,"CabinetWClass")!=0) // WinNT return NULL; WCHAR* pPath=new WCHAR[MAX_PATH]; pPath[0]='/0'; EnumChildWindows(hCurWindow,EnumExplorerChilds,(LPARAM)pPath); if (pPath[0]=='/0') { delete[] pPath; return NULL; } return pPath;}
开发者ID:quachdnguyen,项目名称:locate-src,代码行数:27,
示例25: OxWidget_ReleaseChildrenBOOLOxWidget_ReleaseChildren(OxWidgetObject* ox){ if (ox->hWin) EnumChildWindows(ox->hWin, OxWidgetReleaseEnumProc, 0); return TRUE;}
开发者ID:thomasfuhringer,项目名称:oxygen,代码行数:7,
示例26: EnumMinTTYBOOL CALLBACK EnumMinTTY(HWND hwnd, LPARAM lParam){ if (hMinTTY) return FALSE; LPDWORD pdw = (LPDWORD)lParam; TCHAR szClass[100] = _T(""); if (GetClassName(hwnd, szClass, 100)) { if (lstrcmp(szClass, _T("mintty")) == 0) { DWORD nPID, nTID = GetWindowThreadProcessId(hwnd, &nPID); while (*pdw) { if (*pdw == nPID) { hMinTTY = hwnd; return FALSE; // stop } pdw++; } } else if (lstrcmp(szClass, _T("VirtualConsoleClass")) == 0) { EnumChildWindows(hwnd, EnumMinTTY, lParam); } } return TRUE; // continue}
开发者ID:Alexander-Shukaev,项目名称:ConEmu,代码行数:28,
示例27: JabberSearchFreeDatastatic void JabberSearchFreeData(HWND hwndDlg, JabberSearchData * dat){ //lock if ( !dat->fSearchRequestIsXForm && dat->nJSInfCount && dat->pJSInf ) { for ( int i=0; i < dat->nJSInfCount; i++ ) { if (dat->pJSInf[i].hwndValueItem) DestroyWindow(dat->pJSInf[i].hwndValueItem); if (dat->pJSInf[i].hwndCaptionItem) DestroyWindow(dat->pJSInf[i].hwndCaptionItem); if (dat->pJSInf[i].szFieldCaption) free(dat->pJSInf[i].szFieldCaption); if (dat->pJSInf[i].szFieldName) free(dat->pJSInf[i].szFieldName); } free(dat->pJSInf); dat->pJSInf=NULL; } else EnumChildWindows(GetDlgItem(hwndDlg,IDC_FRAME),DeleteChildWindowsProc,0); if ( dat->xNode ) xi.destroyNode( dat->xNode ); SendMessage(GetDlgItem(hwndDlg,IDC_FRAME), WM_SETFONT, (WPARAM) SendMessage( hwndDlg, WM_GETFONT, 0, 0 ),0 ); dat->nJSInfCount=0; ShowWindow(GetDlgItem(hwndDlg,IDC_VSCROLL),SW_HIDE); SetDlgItemText(hwndDlg,IDC_INSTRUCTIONS,TranslateT("Select/type search service URL above and press <Go>")); //unlock}
开发者ID:raoergsls,项目名称:miranda,代码行数:28,
示例28: EditIconHint_Subclassvoid EditIconHint_Subclass(HWND hDlg, HWND hRootDlg /*= NULL*/){ if (!hRootDlg) hRootDlg = hDlg; EnumChildWindows(hDlg, EditIconHint_Enum, (LPARAM)hRootDlg);}
开发者ID:michaellukashov,项目名称:ConEmu,代码行数:7,
示例29: KillTimer// --------------------------------------------------------------------------void CToolTipWnd::OnTimer( UINT nIDEvent ) { if (nIDEvent == ID_TIMER_TOOLTIP_HIDE) { KillTimer(); KillShowTimer(); ShowWindow(SW_HIDE); } else if (nIDEvent == ID_TIMER_TOOLTIP_SHOW) { POINT pt; // Where is the mouse right now? if (GetCursorPos(&pt)) { // Over which window? CWnd* pWnd = WindowFromPoint(pt); // Save the relevant window handles TTWNDSTRUCT ws; ZeroMemory(&ws, sizeof(ws)); ws.hWndToolTip = GetSafeHwnd(); ws.hWndToolTipParent = pWnd->GetSafeHwnd(); // Now do the window handle comparisons EnumChildWindows(m_hParentWnd, EnumChildProc, (LPARAM)&ws); } } CWnd::OnTimer(nIDEvent);}
开发者ID:akhileshzmishra,项目名称:Excel-comparion-tool,代码行数:35,
示例30: NewGUI_TranslateCWndBOOL CFindInDbDlg::OnInitDialog() { CDialog::OnInitDialog(); NewGUI_TranslateCWnd(this); EnumChildWindows(this->m_hWnd, NewGUI_TranslateWindowCb, 0); NewGUI_XPButton(m_btOK, IDB_OK, IDB_OK); NewGUI_XPButton(m_btCancel, IDB_CANCEL, IDB_CANCEL); NewGUI_ConfigSideBanner(&m_banner, this); m_banner.SetIcon(AfxGetApp()->LoadIcon(IDI_SEARCH), KCSB_ICON_LEFT | KCSB_ICON_VCENTER); m_banner.SetTitle(TRL("Find")); m_banner.SetCaption(TRL("Find a string in the entry list.")); if(m_lpGroupName != NULL) { CString str; str = TRL("Find"); str += _T(" - "); str += TRL("Group:"); str += _T(" "); str += m_lpGroupName; m_banner.SetTitle(str); GetDlgItem(IDC_CHECK_GROUPNAME)->EnableWindow(FALSE); GetDlgItem(IDC_CHECK_EXCLUDEBACKUPS)->EnableWindow(FALSE); } GetDlgItem(IDC_EDIT_FINDTEXT)->SetFocus(); return FALSE; // Return TRUE unless you set the focus to a control}
开发者ID:joshuadugie,项目名称:KeePass-1.x,代码行数:31,
注:本文中的EnumChildWindows函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ EnumDisplayDevices函数代码示例 C++ EntityText函数代码示例 |