?
Solved

Background

Posted on 1998-10-20
6
Medium Priority
?
318 Views
Last Modified: 2013-11-20
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
Comment
Question by:jmartins71
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Author Comment

by:jmartins71
ID: 1323560
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
 

Expert Comment

by:xu092098
ID: 1323561
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
 

Author Comment

by:jmartins71
ID: 1323562
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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:jmartins71
ID: 1323563
Adjusted points to 200
0
 

Accepted Solution

by:
xu092098 earned 600 total points
ID: 1323564
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
 

Author Comment

by:jmartins71
ID: 1323565
Thanks Xu,
I will try to do something.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question