發信人: lokoiyin@hotmail.com (Lo Koi Yin) 日期: Mon, 24 Jan 2000 14:37:50 +0800 標題: Re: [SDK] 如何殺掉由別的程式所產生的視窗 ? 信群: tw.bbs.comp.language 看板: 來源: <388bf211.0@news.tm.net.my>:24527, ppg-83-208.tm.net.my 組織: TMnet Malaysia DestroyWindow only work with top-level windows, you can verify whether it's top-level window or not by uisng GetParent. I kill windows by using PostMessage with WM_CLOSE... this is not elegant but it works for me... regards, PhilipTheCat "空中雲雀" wrote in message news:3YXeTe$vbj@bbs.cis.nctu.edu.tw... > > > 我查了 DestroyWindow() > 結果說由別的 thread 所產生的不能殺掉... > > 那如果是由別的程式所產生的視窗, > 那要如何殺掉呢? 當然我已經知道他的 hwnd 了 > > 這邊的視窗包括很多, 按鈕也是, 反正由 CreateWindow, CreateWindowEx > 產生的都算, 對話盒也算 > 謝謝 > -- > * Origin: ★ 交通大學資訊科學系 BBS ★ .