Solved

Background

Posted on 1998-10-20
6
307 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
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!

 

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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 136
How do you programatically show and hide the Windows 10 On-Screen-Keyboard? 3 900
zeroFront challenge 7 121
Unix Command -- Challenging  question 7 101
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

679 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