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 3978650
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:04:28+00:00 2026-05-20T05:04:28+00:00

i have a layered form with the WS_EX_LAYERED extended style set. i’ve created a

  • 0

i have a layered form with the WS_EX_LAYERED extended style set. i’ve created a child “EDIT” control using CreateWindowEx(…) API function; the control it’s there but is not painted and nothing appears on the form.

i know that when using WS_EX_LAYERED style on a top window the WM_PAINT message is not sent anymore and neither child controls will receive it so that`s why it doesn’t appear.

please take into account that the form`s opacity is set to 255 and the background is painted with a transparent image using UpdateLayeredWindow(…) API.

when i hover the mouse over the EDIT control, the text cursor appear and i can copy the text inside it.

i guess that the problem i have to deal with is somehow making the control to accept user paint.

i’ve tried painting the control with the same technique as the form, and for that i’ve created a compatible DC from the form but i don’t know if this is even possible, my control is still not painted.

should it work if i send the WM_PRINTCLIENT for that control ? in that case, the DC should be the layered parent form ? i have also tried this but i couldn’t make it work.

normal form: http://img580.imageshack.us/i/formy.png/

layered form: http://img6.imageshack.us/i/layeredform.png/

my question is how do i make my edit control accept alpha-blended-user-paint ? how do i paint a alpha-blended control on the layered form ?

  • 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-05-20T05:04:29+00:00Added an answer on May 20, 2026 at 5:04 am

    in the end i have found a way to do it,

    what i had to do was to get the bitmap-image of each control and draw it on the form’s background so … when i applied UpdateLayeredWindow for the form, the form bitmap contained all the controls,

    i still don`t know if this is a best practice though

    the method works nicely but i have to perfect it and add more interaction + alpha blended controls .. on the other hand functionality is there

    here it is: http://img84.imageshack.us/img84/3172/73845647.png

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

Sidebar

Related Questions

I'm looking after a way to AlphaBlend a child form, if possible using layered
I'm developing a project using a layered architecture. I have a DAL in which
I have a layered application in Java which has a multi thread data access
We have a layered application, or at least is in the process of transitioning
I have legacy asp.net 1.1 website. It has a very poor VB layered achitecture.
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I
i am trying to set transparency of all windows. I have following code. public
I have a layered worker class that I'm trying to get progress reports from.
I have a 4 layered web application programmed in C#... .Net 4.0: UI Layer

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.