Valhalla Legends Forums Archive | General Programming | Transparent Controls.

AuthorMessageTime
PaiD
I am working on getting a Listview's background to become transparant. When I try the whole control is tranparant and I was hoping where was another way to do this or if I am doing it wrong. I use the same thing on my Rich Text Box and it works flawless and I only see the text that was displayed on it. How ever the listview just disapears.

[code]
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_TRANSPARENT = &H20


SetWindowLong frmMain.rtbMain.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
' That works
'SetWindowLong frmMain.lvUsers.HWnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
' That works all to well and I dont see the text :p
[/code]

Any ideas?
September 3, 2005, 12:06 AM
Myndfyr
Custom draw the text on the list view?
September 3, 2005, 1:21 AM
PaiD
MyndFyre: Which API's could I use to do this?
September 3, 2005, 5:13 PM
KkBlazekK
I'd think either DrawText, DrawTextEx, or TextOut
September 3, 2005, 5:18 PM

Search