Solved

Through which functions can HDC type variables be created?

Posted on 2009-05-08
4
533 Views
Last Modified: 2013-12-03
Hello. I'd like to know which functions can create an HDC type variable. I am hooking a program that is using HDCs and I'd like to know which functions might be creating it and also which ones can be using it. I know this program will use things drawed in small pictures to put everything in a big picture(I guess it's double buffering), before it shows me the final pic. Thanks
0
Comment
Question by:devoured_elysium
[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 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 24334657
Hi devoured_elysium,

well, HDCs are create with ::CreateDC. A list of all functions which can use a HDC is quite long since nearly and GDI function uses a HDC. You can take a look at the GDI description in MSDN here http://msdn.microsoft.com/en-us/library/dd145203(VS.85).aspx, there you'll find (I guess) all functions which use HDC.

ZOPPO
0
 
LVL 19

Accepted Solution

by:
alb66 earned 125 total points
ID: 24334687
In order to get the device context for a specific windoe you can use GetDC()
http://msdn.microsoft.com/en-us/library/aa921543.aspx

HDC hDC = GetDC( hWnd );
0
 

Author Comment

by:devoured_elysium
ID: 24334904
Yes, it seems to be using GetDC(). I thought I'd already tried that one but now I see that's being used. Thanks

One more question, though. If this application is indeed using double buffering, is it probably using bitmaps or is there any other common way of doing it? I mean this as I've hooked CreateBitmap and it shows nothing.
0

Featured Post

Technology Partners: 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

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 …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

739 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