CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Transparent Paint...HELP!!!

    Hi!
    I want to fill a polygon on my activex.
    I need to do the activeX transparent , becouse of this I can't use FillColor and I try to use CreateSolidBrush(color). I see that CreateSolidBrush return long , but SelectObject use integer. How can I do it ?
    Thanks!


    Dim hBr as Long
    Dim oldObj as Integer
    hBr = CreateSolidBrush(vbRed)
    oldObj = SelectObject(me.hDC, CInt(hBr))
    'In this place I got error !
    Polygon me.hDC, XY(0), 3
    SelectObject me.hDC, oldObj






  2. #2
    Guest

    Re: Transparent Paint...HELP!!!

    Tray this.

    oldObj = CInt(SelectObject(Me.hDC, CInt(hBr)))



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured