国产成人AV一区二区三区在线_国产成人精品无码免费看_国产成人无码无卡在线观看_国产精品成人A区在线观看_国产日韩精品欧美一区_国产亚洲精品自在久久蜜TV_久草热久草热线频97精品_久久久噜噜噜久久中文福利_久久婷婷五月综合色国产免费观看_日日狠狠久久偷偷色综合0,九一桃色在线观看,久久97精品久久久久久久不卡,国产成人精品亚洲精品

vb使右上角關(guān)閉按鈕為假

訪客2023-11-13 08:22:577

就是禁用右上角x按鈕,,如果把controlbox設(shè)為假則又所有按鈕都消失了。有什么辦法嗎,?

Private Declare Function GetSystemMenu Lib "User32" (ByVal hwnd As Long, ByVal bRevert As Long) As LongPrivate Declare Function RemoveMenu Lib "User32" (ByVal hMenu As Long, ByVal nPosition As Long, _ ByVal wFlags As Long) As LongPrivate Const MF_REMOVE = &H1000Private Const SC_CLOSE = &HF060Private Sub Disabled(a, B)Dim hMenu, hwndMenu As LongDim c As LonghMenu = GetSystemMenu(a, 0)RemoveMenu hMenu, SC_CLOSE, MF_REMOVEEnd SubPrivate Sub Form_Load()Dim a As StringDim B As Integera = Me.hwndB = 0Disabled a, BEnd SubPrivate Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)Cancel = TrueEnd Sub

文章評論