计算机等级考试二级VB:如何去掉窗体的关闭按钮 |
|
www.nanhushi.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 |
|
|
|
文章录入:杜斌 责任编辑:杜斌 |
|
上一篇文章: 计算机等级考试二级VB程序设计辅导 下一篇文章: 计算机二级VB编程应用:用Winrar压缩文件[1] |
【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |
|
|