| | |
Visual C++ Form Project - need to get HDC for drawing bitmaps
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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.
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.
![]() |
Similar Threads
- How can I show a form? (VB.NET)
- Code for Call the program in Visual Basic (Visual Basic 4 / 5 / 6)
- Compile A Visual C# Project , How?!?!?! (C#)
- about project (Visual Basic 4 / 5 / 6)
- FoxPro 7.0 - Tutorial Website Needed (MS Access and FileMaker Pro)
- Error with manifest resource files (ASP.NET)
Other Threads in the C++ Forum
- Previous Thread: How do I make this output into a .dat file?
- Next Thread: strcpy and linked lists
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib library linkedlist linker linux loop looping loops map math matrix memory newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct studio temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






