elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a Git (Primera Parte)


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Mostrar Texto Fera del form Ayuda.!!!
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Mostrar Texto Fera del form Ayuda.!!!  (Leído 3,249 veces)
darkisel

Desconectado Desconectado

Mensajes: 13


Ver Perfil
Mostrar Texto Fera del form Ayuda.!!!
« en: 7 Enero 2014, 00:52 am »

Hola Amigos Quisiera que me ayuden a mostrar mensajes o palabras fera de form.!!  ya busque por todos lados.!! y no encontre nada :( ya muchos lo hacen.!! aca les dejo una imagen aver si alguien me ayuda :( puede ser en vb6 o vb 2010  El que dice GitzWC! es el exe compilado.!!



Espero respuesta ayudennnnnnnnnnnnnnnnnnnnnnnnn


En línea

Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: Mostrar Texto Fera del form Ayuda.!!!
« Respuesta #1 en: 7 Enero 2014, 15:54 pm »

y google  :¬¬? acabo de colocar en google y salen ejemplos hasta decir basta!!!.



En línea

MCKSys Argentina
Moderador Global
***
Desconectado Desconectado

Mensajes: 5.465


Diviértete crackeando, que para eso estamos!


Ver Perfil
Re: Mostrar Texto Fera del form Ayuda.!!!
« Respuesta #2 en: 7 Enero 2014, 16:04 pm »

La primera idea que se me cruza: TextOut (http://msdn.microsoft.com/en-us/library/windows/desktop/dd145133(v=vs.85).aspx)

Saludos!
En línea

MCKSys Argentina

"Si piensas que algo está bien sólo porque todo el mundo lo cree, no estás pensando."

darkisel

Desconectado Desconectado

Mensajes: 13


Ver Perfil
Re: Mostrar Texto Fera del form Ayuda.!!!
« Respuesta #3 en: 7 Enero 2014, 21:46 pm »

y google  :¬¬? acabo de colocar en google y salen ejemplos hasta decir basta!!!.




Si aye Tantos.!1 por que no me dejas algunos ejemplos ya busque y no encontre -_- :(
En línea

darkisel

Desconectado Desconectado

Mensajes: 13


Ver Perfil
Re: Mostrar Texto Fera del form Ayuda.!!!
« Respuesta #4 en: 7 Enero 2014, 21:47 pm »


Gracias man por la idea Aver buscare mas informacion sobre el textOut aver si me sale jeje :)
En línea

abkanis

Desconectado Desconectado

Mensajes: 34


Ver Perfil
Re: Mostrar Texto Fera del form Ayuda.!!!
« Respuesta #5 en: 22 Abril 2014, 16:57 pm »

NO se ve el formulario en el taskbar  eso significa, que el texto no esta fuera del formulario sino dentro, lo que pasa es que el formulario tiene su color de  fondo transparente, y solo permite verse el texto que es d e otro color.
En línea

abkanis

Desconectado Desconectado

Mensajes: 34


Ver Perfil
Re: Mostrar Texto Fera del form Ayuda.!!!
« Respuesta #6 en: 22 Abril 2014, 17:24 pm »

Colocas en un modulo bass:

Código:
Option Explicit


Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function GetPixel Lib "gdi32" (ByVal hDC As Long, ByVal X As Long, ByVal Y As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Private Const RGN_OR As Long = 2&

Private Declare Sub OleTranslateColor Lib "oleaut32.dll" ( _
     ByVal clr As Long, _
     ByVal hpal As Long, _
     ByRef lpcolorref As Long)

Private Type BITMAPINFOHEADER
    biSize As Long
    biWidth As Long
    biHeight As Long
    biPlanes As Integer
    biBitCount As Integer
    biCompression As Long
    biSizeImage As Long
    biXPelsPerMeter As Long
    biYPelsPerMeter As Long
    biClrUsed As Long
    biClrImportant As Long
End Type

Private Type RGBQUAD
    rgbBlue As Byte
    rgbGreen As Byte
    rgbRed As Byte
    rgbReserved As Byte
End Type

Private Type BITMAPINFO
    bmiHeader As BITMAPINFOHEADER
    bmiColors As RGBQUAD
End Type

Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hDC As Long) As Long
Private Declare Function CreateDIBSection Lib "gdi32" (ByVal hDC As Long, pBitmapInfo As BITMAPINFO, ByVal un As Long, ByVal lplpVoid As Long, ByVal handle As Long, ByVal dw As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hDC As Long, ByVal hObject As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function GetDIBits Lib "gdi32" (ByVal aHDC As Long, ByVal hBitmap As Long, ByVal nStartScan As Long, ByVal nNumScans As Long, lpBits As Any, lpBI As BITMAPINFO, ByVal wUsage As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hDC As Long) As Long

Private Const BI_RGB As Long = 0&
Private Const DIB_RGB_COLORS As Long = 0&

Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long

Private Const LWA_COLORKEY As Long = &H1&
Private Const GWL_EXSTYLE As Long = (-20&)
Private Const WS_EX_LAYERED As Long = &H80000

Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long

Public Const WM_NCLBUTTONDOWN As Long = &HA1&
Public Const HTCAPTION As Long = 2&

 Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
 Public Declare Function ReleaseCapture Lib "user32" () As Long


Public Function MakeFormTransparent(frm As Form, ByVal lngTransColor As Long)
    Dim hRegion As Long
    Dim WinStyle As Long
   
 
    If lngTransColor < 0 Then OleTranslateColor lngTransColor, 0&, lngTransColor

    If IsFunctionExported("SetLayeredWindowAttributes", "user32") Then
       
        WinStyle = GetWindowLong(frm.hWnd, GWL_EXSTYLE)
        WinStyle = WinStyle Or WS_EX_LAYERED
        SetWindowLong frm.hWnd, GWL_EXSTYLE, WinStyle
        SetLayeredWindowAttributes frm.hWnd, lngTransColor, 0&, LWA_COLORKEY
       
    Else
        hRegion = RegionFromBitmap(frm, lngTransColor)
        SetWindowRgn frm.hWnd, hRegion, True
        DeleteObject hRegion
    End If
End Function

Private Function RegionFromBitmap(picSource As Object, ByVal lngTransColor As Long) As Long
    Dim lngRetr As Long, lngHeight As Long, lngWidth As Long
    Dim lngRgnFinal As Long, lngRgnTmp As Long
    Dim lngStart As Long
    Dim X As Long, Y As Long
    Dim hDC As Long
   
    Dim bi24BitInfo As BITMAPINFO
    Dim iBitmap As Long
    Dim BWidth As Long
    Dim BHeight As Long
    Dim iDC As Long
    Dim PicBits() As Byte
    Dim Col As Long
    Dim OldScaleMode As ScaleModeConstants
   
    OldScaleMode = picSource.ScaleMode
    picSource.ScaleMode = vbPixels
   
    hDC = picSource.hDC
    lngWidth = picSource.ScaleWidth '- 1
    lngHeight = picSource.ScaleHeight - 1

    BWidth = (picSource.ScaleWidth \ 4) * 4 + 4
    BHeight = picSource.ScaleHeight

    With bi24BitInfo.bmiHeader
        .biBitCount = 24
        .biCompression = BI_RGB
        .biPlanes = 1
        .biSize = Len(bi24BitInfo.bmiHeader)
        .biWidth = BWidth
        .biHeight = BHeight + 1
    End With
   
    ReDim PicBits(0 To bi24BitInfo.bmiHeader.biWidth * 3 - 1, 0 To bi24BitInfo.bmiHeader.biHeight - 1)
   
    iDC = CreateCompatibleDC(hDC)
 
    iBitmap = CreateDIBSection(iDC, bi24BitInfo, DIB_RGB_COLORS, ByVal 0&, ByVal 0&, ByVal 0&)
   
    Call SelectObject(iDC, iBitmap)
 
    Call BitBlt(iDC, 0, 0, bi24BitInfo.bmiHeader.biWidth, bi24BitInfo.bmiHeader.biHeight, hDC, 0, 0, vbSrcCopy)
   
    Call GetDIBits(hDC, iBitmap, 0, bi24BitInfo.bmiHeader.biHeight, PicBits(0, 0), bi24BitInfo, DIB_RGB_COLORS)
 
    Call DeleteDC(iDC)
   
    Call DeleteObject(iBitmap)

    lngRgnFinal = CreateRectRgn(0, 0, 0, 0)
    For Y = 0 To lngHeight
        X = 0
        Do While X < lngWidth
            Do While X < lngWidth And _
                RGB(PicBits(X * 3 + 2, lngHeight - Y + 1), _
                    PicBits(X * 3 + 1, lngHeight - Y + 1), _
                    PicBits(X * 3, lngHeight - Y + 1) _
                    ) = lngTransColor
               
                X = X + 1
            Loop
            If X <= lngWidth Then
                lngStart = X
                Do While X < lngWidth And _
                    RGB(PicBits(X * 3 + 2, lngHeight - Y + 1), _
                        PicBits(X * 3 + 1, lngHeight - Y + 1), _
                        PicBits(X * 3, lngHeight - Y + 1) _
                        ) <> lngTransColor
                    X = X + 1
                Loop
                If X + 1 > lngWidth Then X = lngWidth
                lngRgnTmp = CreateRectRgn(lngStart, Y, X, Y + 1)
                lngRetr = CombineRgn(lngRgnFinal, lngRgnFinal, lngRgnTmp, RGN_OR)
                DeleteObject lngRgnTmp
            End If
        Loop
    Next

    picSource.ScaleMode = OldScaleMode
    RegionFromBitmap = lngRgnFinal
End Function


Private Function IsFunctionExported(ByVal sFunction As String, ByVal sModule As String) As Boolean
    Dim hMod As Long, lpFunc As Long, bLibLoaded As Boolean
   
    hMod = GetModuleHandle(sModule)
    If hMod = 0 Then
        hMod = LoadLibrary(sModule)
        If hMod Then bLibLoaded = True
    End If
   
    If hMod Then
        If GetProcAddress(hMod, sFunction) Then IsFunctionExported = True
    End If
   
    If bLibLoaded Then Call FreeLibrary(hMod)
End Function


y en un formulario : colocas un Control Command1   y 3 label y en el codigo fuente:

Código:
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
ReleaseCapture
SendMessage Me.hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
End Sub
Private Sub Form_Load()
Me.BackColor = &HFFFFFF
Label1.ForeColor = &HFF&
Label2.ForeColor = &HFF&
Label3.ForeColor = &HFF&
MakeFormTransparent Me, &HFFFFFF
End Sub

puse es e boton, para que puedas arrastrarlo , Aclro que el codigo del modulo, no es mio. suerte.
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Mostrar UserControl por fuera del form.
.NET (C#, VB.NET, ASP)
P[i] 3 3,958 Último mensaje 12 Octubre 2007, 20:20 pm
por P[i]
Disculpe, como puedo mostrar un form en un form?
Programación Visual Basic
Sai-To 8 3,829 Último mensaje 13 Enero 2008, 15:27 pm
por nhaalclkiemr
[Ayuda] Mostrar lo que estoy escuchando en un Form
Programación Visual Basic
sebah97 3 2,346 Último mensaje 5 Septiembre 2010, 10:26 am
por BlackZeroX
Mostrar error de Login dentro de Form
PHP
KeyPy HH 7 14,208 Último mensaje 24 Septiembre 2012, 06:00 am
por jdc
Problema al mostrar el Form Parent « 1 2 3 »
.NET (C#, VB.NET, ASP)
z3nth10n 24 8,983 Último mensaje 1 Junio 2013, 12:20 pm
por z3nth10n
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines