Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9143367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:00:23+00:00 2026-06-17T10:00:23+00:00

I have an issue where overlapping child windows are not being painted correctly when

  • 0

I have an issue where overlapping child windows are not being painted correctly when one window is updated below another window that has the WS_EX_TRANSPARENT style.

The parent window has two children, W1 and W2, that overlap with W1 being above W2 in the z-order. W1 has the extended style WS_EX_TRANSPARENT. The issue is that when W2 paints in its client area (I’m testing this by invalidating W2), the W2 entirely paints over the overlapping portion of W1. If the parent is redrawn then both overlapping children are drawn in the correct order.

The child windows are drawn correctly when WS_CLIPSIBLINGS is set on W2 and WS_EX_TRANSPARENT is removed from W1. If W2’s client area is invalidated in this situation, it paints but does not draw over the portion obscured by W1.

WS_EX_TRANSPARENT is being used because the first child window is being used as an overlay for the second child window, and I would like to avoid having mouse clicks blocked by the overlay.

Is there a way to have overlapping windows draw correctly with the WS_EX_TRANSPARENT style or can I get the same behavior using some sort of workaround?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:00:25+00:00Added an answer on June 17, 2026 at 10:00 am

    WS_EX_TRANSPARENT is flaky. The KB article has a cop-out, “we don’t actually support transparent windows”. But does nothing to explain the operation, nor does the SDK, nor does Raymond Chen. I’ve been bitten once too many so just don’t use it anymore.

    But I think the rule is that it will take care of getting the overlayed window to paint first when the upper window needs painting to ensure that the background pixels are set. So invalidating W1 will invalidate W2 as well and then the normal Z-order painting takes care of things. Ignoring the inevitable flicker problem. But not the other way around, invalidating the overlayed window will not force a repaint for the upper one. Bit of an hang-up in your case.

    Regardless of my guessing, a fix in your case that ought to work is to invalidate W1 as well when you invalidate W2. Or just invalidate W1 when it completely overlaps W2. Hope that works, good luck with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I have an issue which I could not find answer for across the web.
I have layout like this At the top i have listView ,below that i
I have an issue while displying the BannerView on my screen like below image:
I'm working on a pricing table and have an issue with one of the
I have a problem with divs overlapping in http://web.corporativocipres.com.mx/ The issue is with the
Here's my issue: I have 3 tables, with overlapping information (specifically, the username) in
i have issue. This below code is the views code of ruby in rails
I have issue with: <form:checkboxes path=roles cssClass=checkbox items=${roleSelections} /> If previous line is used
We are new to ROR, We have issue in creating Login/Logout process in ROR

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.