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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transparent Frame

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
At the moment I have an instalation program that either installs or Upgrades(my selfmade script interp) , well on one of the steps, theres a lot of controls, normally If&nbsp;&nbsp;I justuse a frame control, stick a lot into it, I can just set the visibility to false when user intervention is not needed, well in this case, I want to keep the controls out of a frame, for the reason that a Frame control cannot have a transparent background like a Label can, least theres no way that I know of, reason I need it transparent, is the dialog, is both gradient, and has a transparent GIF on top of that gradient background(instalation gfx), If I do figure out a way of doing transparent frame, I dont intend to put the Image control in it, only to the side( reason being might have a problem going through two layers of transparency) Anyone got any ideas? <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
You can Hide the Frame, & copy the backgroundin a HDC then you make visible the control & you draw what's on the HDC.<br><br><br>Use this function:<br><br><br>ret=CreatCompatibleDC(NULL)<br>BitBlt(ret,xdest,ydest,,width,height,GetWindowDC(Me.hwnd),xsrc,ysrc)<br>Control.visible=true<br>BitBlt(GetWindowDC(Me.hwnd),xdest,ydest,width,height,ret,xsrc,ysrc)<br><br>Try my game against Poke : <A HREF=" TARGET="_new">
 
Um CreateCompatibleDC doesnt exist, and I Cant find it on the API Text Viewer. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
n/m I found it. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
ok got those API declarations in, how about the xdest, ydest, width, height, I assume thats the area to cut/copy, but whats the xsrc, and ysrc <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
x and y source? - to match x and y destination I'm guessing <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
well whatever his idea is, the second BitBlt is missing a bunch of parameters, and I dont think its Destination , I think it's cutting then pasting, Could you be more specific (and correct stuff like spelling, and parameters) <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top