• Welcome to Valhalla Legends Archive.
 

Transparent Controls.

Started by PaiD, September 02, 2005, 07:06 PM

Previous topic - Next topic

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.


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


Any ideas?

MyndFyre

Custom draw the text on the list view?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

PaiD

MyndFyre: Which API's could I use to do this?

Blaze

Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No