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
 
Back
Top