drawitem.bas

来自「VB圣经」· BAS 代码 · 共 29 行

BAS
29
字号
Attribute VB_Name = "modDrawItem"
'***************************************************************
' (c) Copyright 2000 Matthew J. Curland
'
' This file is from the CD-ROM accompanying the book:
' Advanced Visual Basic 6: Power Techniques for Everyday Programs
'   Author: Matthew Curland
'   Published by: Addison-Wesley, July 2000
'   ISBN: 0-201-70712-8
'   http://www.PowerVB.com
'***************************************************************
Option Explicit

Public Type OwnedDrawItemStruct
    Owner As ArrayOwner
    pSA() As DRAWITEMSTRUCT
End Type
Public g_DerefDrawItemStruct As OwnedDrawItemStruct
Sub Main()
    InitVBoost
    With g_DerefDrawItemStruct
        InitArrayOwner .Owner, LenB(.pSA(0)), 0
    End With
End Sub

Public Function RedirectODLBWindowProc(ByVal This As OwnerDrawListBox, ByVal hWnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
    RedirectODLBWindowProc = This.WindowProc(hWnd, uMsg, wParam, lParam)
End Function

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?