Re: Transparent child window



Have you tried to drag the parent window around? What happes to the child window if you
drag the parent window? My expectation is that the popup window will not move with the
parent, but I haven't tried this.
joe

On Tue, 22 Jul 2008 09:48:45 -0400, Edward Diener <eddielee_no_spam_here@xxxxxxxxxxxxxx>
wrote:

Kellie Fitton wrote:
On Jul 21, 12:37 pm, Edward Diener
<eddielee_no_spam_h...@xxxxxxxxxxxxxx> wrote:
I have a child window with a light-colored background color brush, which
I want to be transparent so that the underlying parent window shows
through the background. A layered window does not work with a child
window. Is there any way I can do this with a child window ?



Hi,

Have you tried the following Windows style to create
a transparent window:

CreateWindowEx() WS_EX_TRANSPARENT

Or,

SetWindowRgn()


I was able to switch my window type from WS_CHILD to WS_POPUP and use
the WS_EX_LAYERED extended style as well as the
SetLayeredWindowAttributes to achieve my goals. Thanks for your help !
.



Relevant Pages

  • Re: Are VBA userforms always child of Windows desktop?
    ... When I load a modeless userform then in Spy++ the treeview suggests that the form is a child of the desktop. ... Retrieves the parent window. ...
    (microsoft.public.excel.programming)
  • Re: PostBack
    ... > different from the standard implementation. ... > window in javascript. ... >> I want to call dopostback of parent window from child window. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to call a java script function in a child window from the
    ... The htm in the parent window and needs ... The child window displays a contact form that is to be ... I was trying to from the parent window script> ...
    (microsoft.public.frontpage.programming)
  • Re: WM_NOTIFY routing
    ... When a control has an event (such as UI ... parent window by sending a WM_NOTIFY message to it. ... >> WM_NOTIFY is sent from the child window to its parent. ...
    (microsoft.public.vc.mfc.docview)
  • Re: How to have a Perl script emulate a keystroke to another application
    ... I used Win32::GuiTest to SendKeys to applications. ... Finds the window handles of the windows matching the specified ... parent - the parent window of the button ... BOOL SetForegroundWindow* ...
    (comp.lang.perl.misc)

Loading