| 发表于:2007-07-05 08:33:281楼 得分:5 |
option explicit private declare function messagebox lib "user32.dll " alias "messageboxa " (byval hwnd as long, byval lptext as string, byval lpcaption as string, byval wtype as long) as long const idok = 1 const idcancel = 2 const idabort = 3 const idretry = 4 const idtryagain = 4 const idcontinue = 5 const idignore = 5 const idyes = 6 const idno = 7 const idclose = 8, const idhelp = 9, const idtryagain = 10, const idcontinue = 11, const idtimeout = 32000 const mb_ok = 0 const mb_okcancel = 1 const mb_abortretryignore = 2 const mb_canceltrycontinue = 2 const mb_yesnocancel = 3 const mb_yesno = 4 const mb_retrycancel = 5 const mb_iconhand = &h10 const mb_iconerror = mb_iconhand const mb_iconstop = mb_iconhand const mb_iconquestion = &h20 const mb_iconexclamation = &h30 const mb_iconwarning = mb_iconexclamation const mb_iconasterisk = &h40 const mb_iconinformation = mb_iconasterisk const mb_usericon = &h80 const mb_defbutton1 = &h0 const mb_defbutton2 = &h100 const mb_defbutton3 = &h200 const mb_defbutton4 = &h300 const mb_applmodal = &h0 const mb_systemmodal = &h1000 const mb_taskmodal = &h2000 const mb_help = &h4000 const mb_setforeground = &h10000 const mb_default_desktop_only = &h20000 const mb_service_notification_nt3x = &h40000 const mb_topmost = &h40000 const mb_right = &h80000 const mb_rtlreading = &h100000 const mb_service_notification = &h200000 private sub command1_click() messagebox me.hwnd, "aaaaaaaaaa ", app.title, mb_iconexclamation + mb_topmost end sub | | |
|