⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawitem.bas

📁 VB圣经
💻 BAS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -