Solved

OwnerDrawPageHeader Event

Posted on 2002-05-27
2
191 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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…
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…
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…

832 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