• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

Background

Before posing the question my advanced thanks for your time.

I am doing a WIZARD based application with VC6.
I would like to have a background hiding the  windows98 start bar.
My wizard dialog will be over the background in some position.
Depending on what the wizard is doing i would like to change parts of the background like images, texts or fonts ( for instances highligthing some text and the inverse).
The ideal would be a background like some dialog box where i can easily control the properties of some graphical objects.
How can i make this background ?
0
jmartins71
Asked:
jmartins71
  • 4
  • 2
1 Solution
 
jmartins71Author Commented:
Difficult to do?
Can i create a main window that covers the entirely desktop.
Maybe using directx?
What i want is create bakground and the start wizard. During wizard operations change some graphics in the desktop. When the wizard stops turn off the background.
0
 
xu092098Commented:
I think you can look up the function called "GetWindowDC" or something like that (I don't remember very clear), and the first parameter of it is the handle for window, if you fill in NULL, it returns the hDC of the whole screen. Maybe that helps.
0
 
jmartins71Author Commented:
thanks xu.

Here is my comment:
I have been searching around your key word and found that GetWindowsDC (api not mfc from cwnd) is what you say.
I also find getDC.
"The GetDC function retrieves a handle to a display device context for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the device context."
My guess is that is better?
But if i have a dc what can i do?
That is must i place a bitmap to cover the screen and then manually( typing the coordinates) write out what i want?
Closing the dc restores the original?
I´m confusing because i have see applications that use one background withoung working around the desktop!
Whit the dc can i create one window and then place a dialog resource within it´s client area?
Can you give some example?
As you can seen there is here a lot of confusing ideas.


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jmartins71Author Commented:
Adjusted points to 200
0
 
xu092098Commented:
Once you get the DC handle, just draw anything as usual, with funtions like bitblt to put a bitmap or line, just as you do in a common window.
To restore the original bitmap, you have to back it up before you modify it, just like many screen savers do.
I think what you wanna do is to show the dialog as well as has some background, and you can do the dialog thing as usual. Just consider the background as a common window area and your dialog will overlap it.
I hope this can help but I don't want to give examples 'cause it's just a few lines and it takes the fun of exploring out of it. Agree? Good Luck!
0
 
jmartins71Author Commented:
Thanks Xu,
I will try to do something.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now