VB编程:去掉窗体的关闭按钮

文章作者 100test 发表时间 2007:03:26 17:25:29
来源 100Test.Com百考试题网


计算机等级考试训练软件《百宝箱》

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



相关文章


2003年4月全国计算机等级考试二级visualBasic笔试试卷(含答案)
2002年9月全国计算机等级考试二级VB试卷(含答案)
VB编程:获取系统目录和Windows目录
全国计算机等级考试二级:如何编写高质量的VB代码
VB编程:去掉窗体的关闭按钮
VB中利用Winrar进行文件压缩
VB编程:如何在列表框中自动查找
VB指导:使用twips获得屏幕信息
VB指导:缩小VB发布文件过程
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛