Solved

OwnerDrawPageHeader Event

Posted on 2002-05-27
2
190 Views
Last Modified: 2007-12-19
can anyone give an example of using the OwnerDrawPageHeader Event of the componentOne trueDBgrid control ?


 
0
Comment
Question by:pierrecampe
2 Comments
 
LVL 6

Author Comment

by:pierrecampe
ID: 7037858
OK i have found it:
Private Sub TDBGrid1_OwnerDrawPageHeader(ByVal hDC As Long, ByVal Page As Long, ByVal Pages As Long, ByVal Group As Long, ByVal Groups As Long, ByVal Subpage As Long, ByVal Subpages As Long, ByVal Left As Integer, ByVal Top As Integer, ByVal Right As Integer, ByVal Bottom As Integer)
    Dim a As Long
    Dim r As RECT
    Dim b$
    r.Left = Left
    r.Top = Top
    r.Right = Right
    r.Bottom = Bottom
    b$ = "erzerzerez hgjhjhgjhxcgjhxcgjhg dgdfgdfg dfdf dfg dfg dfg aaa bbb ccc"
    a = DrawText(hDC, b$, Len(b$), r, DT_WORDBREAK)
End Sub

i'll reduce this questions points to 0 and move it to the paq
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7037894
Per request, points refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now