计算机等级考试二级VB:如何去掉窗体的关闭按钮
时间:2007-04-17 来源:大学生计算机等级考试 打印本文
| 以下是引用片段: private declare function getsystemmenu lib 'user32' (byval hwnd as long, byval brevert as long) as long private declare function removemenu lib 'user32' (byval hmenu as long, byval nposition as long, byval wflags as long) as long private declare function drawmenubar lib 'user32' (byval hwnd as long) as long private declare function getmenuitemcount lib 'user32' (byval hmenu as long) as long private const mf_byposition = &h400& private const mf_disabled = &h2& private sub form_load() call disablex(me) end sub private sub disablex(frm as form) dim hmenu as long, ncount as long hmenu = getsystemmenu(frm.hwnd, 0) ncount = getmenuitemcount(hmenu) call removemenu(hmenu, ncount - 1, mf_disabled or mf_byposition) drawmenubar frm.hwnd end sub |

上一篇:计算机二级VB编程应用:用Winrar压缩文件[1]
下一篇:计算机等级考试二级VB程序设计辅导
相关阅读:
·07年4月计算机等级考试二级JAVA考前密卷(1) (2007-06-12)·07年4月计算机等级考试三级网络考前密卷(1) (2007-06-12)
·07年4月计算机等级考试三级网络考前密卷(2) (2007-06-12)
·07年4月计算机等级考试三级网络考前密卷(3) (2007-06-12)
·07年4月计算机等级考试三级网络考前密卷(4) (2007-06-12)
·计算机等级考试三级数据库知识考试题 (2007-06-12)
·计算机等级考试四级笔试样题 (2007-06-11)
·计算机等级考试模拟试题汇总 (2007-06-11)


