Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2009, 10:07
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años, 1 mes
Puntos: 839
Respuesta: Dibujar Rectangulo con Fondo (API)

Podrías usar algo como esto:
Código vb:
Ver original
  1. Private Declare Function PaintRgn Lib "gdi32" (ByVal hdc As Long, ByVal hRgn As Long) As Long
  2. Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Código vb:
Ver original
  1. Dim hRgn As Long
  2. Me.AutoRedraw = True
  3. Me.FillStyle = vbSolid
  4. Me.FillColor = vbBlue
  5. hRgn = CreateRectRgn(1, 1, 100, 100)
  6. PaintRgn Me.hdc, hRgn
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.