siti 0 Report post Posted May 25, 2004 cik siti ada satu masalah...macam mana nak detect sama ada modal dialog box dipaparkan dalam application kita? kaedah yang diperlukan samada melalui fungsi MFC atau winapi.thanks in advance!*p/s: kalau nak lebih hebat, masukkan juga untuk detect message box Quote Share this post Link to post Share on other sites
mohdfadly 24 Report post Posted May 25, 2004 Apa maksud cik siti nak detect dialog box?Cik siti boleh guna function OnInitDialog() sebelum mesej dihantar.BOOL CMyDialog::OnInitDialog() { CDialog::OnInitDialog() // masukkan initialization PostMessage(WM_SHOW_DIALOG_B); //hantar mesej ke dialog return TRUE; }Sumber: Programming for Windows 98/NT (penulisnye tak ingat) Quote Share this post Link to post Share on other sites
siti 0 Report post Posted May 26, 2004 ok, cik siti sebenarnya telah implemented satu low level keyboard service untuk windows. semuanya telah berjalan ok (so far) tapi siti nak disable service ini apabila ada modal dialog box atau message box dipaparkan pada screen. apa yang siti tulis telah dimasukkan ke dalam DLL dan sesiapa sahaja boleh memanggil fungsi ini daripada DLL tersebut. masalahnya siti tak akan tahu bilakah pemanggil akan memaparkan modal dialog box atau message box.ada sesiapa yang boleh beri idea tak?enumerate kesemua window pada screen dan detect which one is a dialog box? tapi tak tahu samada jenis modal atau modeless!!! lagi malang apabila MFC telah wrap sesetengah window menggunakan class mereka sendiri...tolong! tolong! tolong! Quote Share this post Link to post Share on other sites
encik pot pet 0 Report post Posted May 26, 2004 boleh send file compiled dll yg cik siti tulis tak? Quote Share this post Link to post Share on other sites
siti 0 Report post Posted May 27, 2004 err... mohon maaf, siti tak dapat nak edarkan atau berikan source code (atau DLL) tersebut kepada zeph kerana ia melanggar polisi dan perjanjian yang telah siti buat. Quote Share this post Link to post Share on other sites
mykk 0 Report post Posted May 28, 2004 (edited) [deleted] Edited October 8, 2004 by mykk Quote Share this post Link to post Share on other sites
encik pot pet 0 Report post Posted May 28, 2004 welcome back mykk... Quote Share this post Link to post Share on other sites
mohdfadly 24 Report post Posted May 28, 2004 welcome welcome.. Quote Share this post Link to post Share on other sites
kwai_lo 0 Report post Posted May 29, 2004 hello siti :}, zeph gave me the new putera forum and now i'm here once again :}. anyway for ur problem, i talked to a few friends and looked up MSDN and from what i've found, is to set a flag and hook the API IsDialogMessage, if it is called once with the hWnd of the dialog window, then u have yourself a modeless dialog, so maybe have a wait of 1 second or so. sorry if i make it sound so easy References:http://msdn.microsoft.com/library/default....DialogBoxes.aspcheersKwai Quote Share this post Link to post Share on other sites
kwai_lo 0 Report post Posted May 29, 2004 while scouting around, a friend found thishttp://www.aewnet.com/newsgroups/rnews.asp...270798&group=10a much better way than the one i proposed Quote Share this post Link to post Share on other sites
encik pot pet 0 Report post Posted May 30, 2004 thanx a lot kwai for coming and sharing..we really appreciate it Quote Share this post Link to post Share on other sites
siti 0 Report post Posted May 31, 2004 thanks!!!although http://www.aewnet.com/newsgroups/rnews.asp...270798&group=10 tak reliable sangat tapi acceptable. Quote Share this post Link to post Share on other sites
mykk 0 Report post Posted June 2, 2004 (edited) [deleted] Edited October 8, 2004 by mykk Quote Share this post Link to post Share on other sites
siti 0 Report post Posted June 7, 2004 1. most of MFC applications boleh jalan ok... tapi ada juga yang tak ok 2. application delphi tak boleh langsung since bukan derieved dari class Dialog tapi beribu-ribu terima kasih cik siti ucapkan kepada semua yang sudi menolong Quote Share this post Link to post Share on other sites