child hwnd 찾기 질문 입니다.
너의길
질문 제목 : child hwnd 찾기 질문입니다.child hwnd 값이 너무 많아서 소스가 길어지네요 .필요한 hwnd만 골라서 찾을수는없는건가요??질문 내용 :
hwnd hparent1 = findwindow( tfrm_fileindex_input, 0);
if (hparent1 == 0)
{
printf(창이 열려있지 않습니다.\n);
return 0;
}
hwnd hchild = getwindow(hparent1, gw_child);
hwnd hchild1 = getwindow(hchild, gw_child);
hwnd hchild2 = getwindow(hchild1, gw_child); //ok
hwnd hchild3 = getwindow(hchild2, gw_hwndnext);
hwnd hchild4 = getwindow(hchild3, gw_hwndnext);
hwnd hchild5 = getwindow(hchild4, gw_hwndnext);
hwnd hchild6 = getwindow(hchild5, gw_hwndnext);
hwnd hchild7 = getwindow(hchild6, gw_child); //ok
hwnd hchild8 = getwindow(hchild6, gw_hwndnext);
hwnd hchild9 = getwindow(hchild8, gw_hwndnext);
hwnd hchild10 = getwindow(hchild9, gw_hwndnext);
hwnd hchild11 = getwindow(hchild10, gw_hwndnext);
hwnd hchild12 = getwindow(hchild11, gw_hwndnext);
hwnd hchild13 = getwindow(hchild12, gw_hwndnext);
hwnd hchild14 = getwindow(hchild13, gw_hwndnext);
hwnd hchild15 = getwindow(hchild14, gw_hwndnext);
hwnd hchild16 = getwindow(hchild15, gw_hwndnext);
hwnd hchild17 = getwindow(hchild16, gw_hwndnext);
hwnd hchild18 = getwindow(hchild17, gw_hwndnext);//ok
hwnd hchild19 = getwindow(hchild18, gw_hwndnext);
hwnd hchild20 = getwindow(hchild19, gw_hwndnext);
hwnd hchild21 = getwindow(hchild20, gw_hwndnext);
hwnd hchild22 = getwindow(hchild21, gw_hwndnext);//ok
hwnd hchild23 = getwindow(hchild22, gw_hwndnext);
hwnd hchild24 = getwindow(hchild23, gw_hwndnext);
hwnd hchild25 = getwindow(hchild24, gw_hwndnext);
hwnd hchild26 = getwindow(hchild25, gw_hwndnext);//ok
hwnd hchild27 = getwindow(hchild26, gw_hwndnext);
hwnd hchild28 = getwindow(hchild27, gw_hwndnext);
hwnd hchild29 = getwindow(hchild28, gw_hwndnext);
hwnd hchild30 = getwindow(hchild29, gw_hwndnext);
hwnd hchild31 = getwindow(hchild30, gw_hwndnext);
hwnd hchild32 = getwindow(hchild31, gw_hwndnext);
hwnd hchild33 = getwindow(hchild32, gw_hwndnext);
hwnd hchild34 = getwindow(hchild33, gw_hwndnext);
hwnd hchild35 = getwindow(hchild34, gw_hwndnext);
hwnd hchild36 = getwindow(hchild35, gw_hwndnext);
hwnd hchild37 = getwindow(hchild36, gw_hwndnext);//ok
hwnd hchild38 = getwindow(hchild37, gw_hwndnext);
hwnd hchild39 = getwindow(hchild38, gw_hwndnext);
hwnd hchild40 = getwindow(hchild39, gw_hwndnext);
hwnd hchild41 = getwindow(hchild40, gw_hwndnext);
hwnd hchild42 = getwindow(hchild41, gw_hwndnext);
hwnd hchild43 = getwindow(hchild42, gw_hwndnext);
hwnd hchild44 = getwindow(hchild43, gw_child);//ok
hwnd hchild45 = getwindow(hchild43, gw_hwndnext);//ok
hwnd hchild46 = getwindow(hchild45, gw_hwndnext);//ok
지금 이렇게 소스가 있는데요,
제가 원하는 핸들 값은 부모 핸들 과 자식 핸들 2,7,12,18,22,26,37,44,45,46 이렇게 있습니다.
소스를 간결하게 할수있을까요??
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2676182 | 숫자 순서대로 배열하는법 | 권뉴 | 2024-11-24 |
2676152 | 기본적인거 하나 질문드립니다. | 개미 | 2024-11-24 |
2676124 | 함수선언관련 질문이에요~...털썩..수정완료 (2) | 가지 | 2024-11-24 |
2676092 | C언어 책 (2) | 아서 | 2024-11-24 |
2676065 | 웹사이트 또는 메신저 등에서 원하는 텍스트를 검사하는방법?? (1) | 모든 | 2024-11-23 |
2676033 | 배열 기초연습중 발생하는 에러 ㅠㅜ... | Creative | 2024-11-23 |
2676005 | keybd_event 게임 제어 | 영글 | 2024-11-23 |
2675900 | 진짜기본적인질문 | 글길 | 2024-11-22 |
2675845 | 수정좀해주세요ㅠㅠㅠ | 해골 | 2024-11-21 |
2675797 | 병합 정렬 소스 코드 질문입니다. (2) | 도래솔 | 2024-11-21 |
2675771 | 큐의 활용이 정확히 어떻게 되죠?? | 해긴 | 2024-11-21 |
2675745 | 도서관리 프로그램 질문이요 | 도리도리 | 2024-11-20 |
2675717 | 2진수로 변환하는것! (3) | 동생몬 | 2024-11-20 |
2675599 | for문 짝수 출력하는 법 (5) | 널위해 | 2024-11-19 |
2675575 | Linux 게시판이 없어서.. | 첫삥 | 2024-11-19 |
2675545 | 구조체 이용할 때 함수에 자료 넘겨주는 것은 어떻게 해야 하나요? | 아연 | 2024-11-19 |
2675518 | 사각형 가로로 어떻게 반복해서 만드는지좀.. 내용 | 신당 | 2024-11-18 |
2675491 | !느낌표를 입력하는것은 어떻게합니까~~?ㅠㅠ (5) | 사지타리우스 | 2024-11-18 |
2675411 | 파일입출력으로 받아온 파일의 중복문자열을 제거한 뒤 파일출력 | 앨버트 | 2024-11-17 |
2675385 | 링크드리스트 주소록 질문드립니다. (1) | 겨루 | 2024-11-17 |