Why CreateCompatibleDC not only CreateDC?
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Hi, why do we need to use CreateCompatibleDC to create a DC even though we can create a Dc using CreateDC? Regards, KDevloper
-
Hi, why do we need to use CreateCompatibleDC to create a DC even though we can create a Dc using CreateDC? Regards, KDevloper
They are two different functions that create different kinds of DCs. You don't "need" to use CreateCompatibleDC. You use it when you need a memory DC compatible with an existing DC. It's not the same as CreateDC. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: