Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<img src="http://i.imgur.com/g0VJDDn.gif?1" title="source: imgur.com" />

http://imgur.com/g0VJDDn[^]
Hi everyone! I am working on Win32 program that reads DirectInput gamepad, and I wont to show position of each stick on the screen, and here is main problem I cant make background of static controls which represents position of stick, to be transparent.
I tried loading ICONS, bitmap, tried different settings but background always white or black. Now I`m learning about GDI+ library, I found many articles on CodeProject about loading PNGs, but I don`t know how to use it.
And second question I using code below to set transparency of static text contronls which shows buttons pressed and values of X Y axis:

C#
case WM_CTLCOLORSTATIC:                         
            SetBkMode((HDC)wParam, TRANSPARENT);               
            SetTextColor((HDC)wParam, RGB(38, 205, 247));      
            return (BOOL)GetStockObject(NULL_BRUSH);           
        break;


but now the text is not redrawn.

If You have some ideas or even know how to make it work please leave a comment.
Thx for Your time.
Posted
Updated 2-Mar-15 12:32pm
v9

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900