Hi all

I am fairly new to C++, and am having problems creating a quick GUI application using the Win32 API. I'd like to use the "windows form project" option in Visual C++ ...which creates windows, textboxes, buttons etc. through a drag & drop interface.

The problem is that I need to able to create a GUI with controls for user input, but also draw bitmaps on a large area of the window. In order to do this, I need to access the handle to the device context of the (automatically created) window.

How do I get the handle to the device context, for my bitmap-drawing functions? And will I get the HDC out of the actual frame, or a specific picture box? ...

Any help would be much appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.