Re-size Rect


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Re-size Rect

  1. #1
    Douglas Guest

    Re-size Rect

    Hi all,

    I have uploaded a new class to my site, which can draw resize rects the same
    as the ones that windows draws!

    This sample uses the focus rect to draw points of inversion at high speed,
    no fancy pattern brushes which don't do the job anyway!

    Later,
    Doug

    Site:
    welcome.to/hot_n_cold_2000




    Share on Google+

  2. #2
    ROb Guest

    Re: Re-size Rect

    UPDATE:

    http://go.to/hot_n_cold_2000

    Later,
    Doug


    Share on Google+

  3. #3
    Phil Weber Guest

    Re: Re-size Rect

    > UPDATE: http://go.to/hot_n_cold_2000

    Doug: Your resize rect project requires win.tlb, which is not included in
    the .zip file, nor could I find it on your site. I would suggest that you
    delete the reference to win.tlb from your project, and add a module
    containing the following declares:

    Public Type POINTL
    x As Long
    y As Long
    End Type
    Public Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
    End Type
    Public Declare Function GetDC Lib "user32" (ByVal hWnd As Long) As Long
    Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTL) As
    Long
    Public Declare Function DrawFocusRect Lib "user32" (ByVal hDC As Long, _
    lpRect As RECT) As Long

    ---
    Phil Weber


    Share on Google+

  4. #4
    Douglas Guest

    Re: Re-size Rect

    Thanks for the info, and the file is now corrected.

    By the way, the *.tbl file is included in the Pack A download....

    Thanks,
    Doug


    Phil Weber <pweber@teleport.com> wrote in message
    news:390a81c1$1@news.devx.com...
    > > UPDATE: http://go.to/hot_n_cold_2000

    >
    > Doug: Your resize rect project requires win.tlb, which is not included in
    > the .zip file, nor could I find it on your site. I would suggest that you
    > delete the reference to win.tlb from your project, and add a module
    > containing the following declares:
    >
    > Public Type POINTL
    > x As Long
    > y As Long
    > End Type
    > Public Type RECT
    > Left As Long
    > Top As Long
    > Right As Long
    > Bottom As Long
    > End Type
    > Public Declare Function GetDC Lib "user32" (ByVal hWnd As Long) As

    Long
    > Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTL)

    As
    > Long
    > Public Declare Function DrawFocusRect Lib "user32" (ByVal hDC As Long,

    _
    > lpRect As RECT) As Long
    >
    > ---
    > Phil Weber
    >
    >



    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center