In the MainWndProc function, add some new local variables to support the GDI functions. You can add the following code to the existing variable declarations at the beginning of the function:
HGDIOBJ SavedPen, SavedBrush;
int DisplayMode;
HDC ThisWindowDC;
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET