Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 problems:f ind .exe files and bmp transparency

Status
Not open for further replies.

Raywall

Programmer
Oct 1, 2003
51
RO
I am using Borland C 5.02,Win xp.
1.
I am interested in finding the names of the
.exe files running because i have to make a
Task mannager.
I now everithing about the windows open but can't retrieve the name of the .exe files who launched the windows.
2.
Another problem:

How can i display a bitmap or other image in c with transparent zones. I think its about masks and PlgBlt() but i dont know how to use them. More specific: i have a shape which is not a rectangular shape, and i wantit in my program without the white or dark areas (to make it a square) wich VC++ adds?
 
please put your question on borlandC++ forums:
forum206

Ion Filipski
1c.bmp
 
why should i putit in bc forums when its a question from Visual C++?? If u know, just tell me....
 
because you are using using Borland C 5.02.

In WinAPI you can achieve the effect of transparency by using SetWindowRgn. By using this function, you can set the zone of window to be displayed. For example, if you want a hole in the window, you should use function CreatePolygonRgn and specify 11 points:
1, 5, 11 will be the right top point of the window and 6; 10 will be (right + something);(top + something)

Code:
1;5;11----------------------2
|  6;10------------------7  |
|  |         a           |  |
|  |     transparent     |  |
|  |    hole will be     |  |
|  |        there        |  |
|  9---------------------8  |
4---------------------------3

[code]

Ion Filipski
[img]http://ournet.md/~ifilipski/1c.bmp[/img]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top