| | |
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 based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






