I want a pop-up window!

I want a transparent and full-screen pop-up window, but I can't.
My code is as follow:

m_hNewWindow = CreateWindowEx(WS_EX_TRANSPARENT, "DIALOG", "", dwStyle, 0, 0, 800, 600, m_hWnd, NULL, NULL, NULL);

Because my windowis transparent, other windows beneath it should be shown.

Can you solve it? Thank you!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Don't specify the "DIALOG" window class name.  The dialog class was not written to be a transparent window.   (transparency is "vouluntary"   An transparent window can draw to its window an therefore cover up the windows below it, so naturually the dialog window does so.)

You will need to create your own window class and write your own window procedure for this transparent window.

Let me kow if you have any questions.
hotheartAuthor Commented:
I'm sorry.
I don't know "exact" meaning to create my own window class. In mfc, what is its class type? CWnd?
I am writing a screen capture program. At first, I used "STATIC" in place of "DIALOG". So I got a full screen window, but all region was not transparent.
I didn't know what to insert in place of "DIALOG".

How can I create new window class?
Sorry again..
Are you programming in MFC?  I don't see any evidence that you are.  If you are using CreateWindow() like that you aren't creating an MFC window.   Are you sure you are using MFC?

Even if you are using MFC you can still define a window class and window procedure for this window.  Take a look at RegisterClass() and WindowProc().

You do not have to reject an answer if you just want clarification or additional assistance.  You can just post a comment asking for help and leave the question ungraded.   Experts tend to appreciate that.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hotheartAuthor Commented:
nietod, thanks for your help.
I am taking a look at RegisterClass() and WindowProc().

Later I will tell you the result.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Internet Marketing

From novice to tech pro — start learning today.