Solved

Background

Posted on 1998-10-20
6
290 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:jmartins71
ID: 1323563
Adjusted points to 200
0
 

Accepted Solution

by:
xu092098 earned 200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
viewing source code from eclipse 13 89
post4 challenge 28 93
fix34  challenge 9 105
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 194
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now