바탕화면을 Parent로 놓고 바탕화면에 프로그램을 배치하기.

Desktop Window을  프로그램의 Parent에 놓는 방법입니다.

2가지중 원하시는 방법을 사용하세요.

첫번째.
DC := GetWindow(GetWindow( FindWindow(‘Progman’,’Program Manager’),GW_CHILD),GW_CHILD);
Windows.SetParent( Handle, DC );

두번째.
HW := FindWindow(‘Progman’,’Program Manager’);
HW := FindWindowEx(HW, 0, Pchar(‘SHELLDLL_DefVIew’), nil);
HW := FindWindowEx(HW, 0, Pchar(‘SysListView32’), nil);
Windows.SetParent(Handle, HW);

 

Author: yyjksw