cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
knowing HDC, can i get the HBitmap?
knowing HDC, can i get the HBitmap?
Dec 8, 2020 at 3:28pm UTC
Cambalinho
(1445)
knowing the HDC(like a form\picturebox\control), can i get the HBitmap?
or i must create from it?
Dec 8, 2020 at 3:51pm UTC
coder777
(8444)
Yes. The gdi function is GetCurrentObject(...). See:
https://docs.microsoft.com/en-us/windows/win32/gdi/device-context-functions
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getcurrentobject
For vb6 you need more research...
Dec 8, 2020 at 3:54pm UTC
Cambalinho
(1445)
thank you so much for all...
it's what i need.
Dec 20, 2020 at 1:40pm UTC
Cambalinho
(1445)
for use the DIB's(pixel array), i must create the DIB using the HBitmap or the HDC have it's own?
Topic archived. No new replies allowed.