Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

OwnerDrawPageHeader Event

Posted on 2002-05-27
2
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

719 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