DC & HDC in managed C++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

How to get Device Context (DC) and Handle to Device Context (HDC) for ‘System::Windows::Forms::Form’ object in managed C++.NET 2003

Thanks for hel

Leoni
 
How to get Device Context (DC) and Handle to Device Context (HDC) for ‘System::Windows::Forms::Form’ object in managed C++.NET 2003?

You can call the GetDC API and pass in the window handle (the form's
Handle property). Or call the form's CreateGraphics method and then
Graphics::GetHdc.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dual monitor management 1
GetDC question 4
IViewObject::Draw 0
ATL Server and access to local drive 1
hDC lifetime 6
Where is the hDC of the PrintDocument. 1
CreateCompatibleBitmap returns NULL 0
Using Metafiles 3

Back
Top