Solved

Background

Posted on 1998-10-20
6
276 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:jmartins71
Comment Utility
Adjusted points to 200
0
 

Accepted Solution

by:
xu092098 earned 200 total points
Comment Utility
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
Comment Utility
Thanks Xu,
I will try to do something.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

8 Experts available now in Live!

Get 1:1 Help Now