Solved

OwnerDrawPageHeader Event

Posted on 2002-05-27
2
189 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
Comment Utility
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
Comment Utility
Per request, points refunded and question closed.

Netminder
CS Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

743 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

8 Experts available now in Live!

Get 1:1 Help Now