coldfusion244
Well-known member
I am attempting to teach myself DCs, these from what I understand can be anything from a window to a printer, monitor, etc. As an experiment to try and learn it, I want to grab the background image or color of the desktop and change it to some random color or colors. This is what I was thnking:
PseudoCode
Does that look like itll work? I havent used bitmaps before either, so hopefully itll be a good learning tool. I am using Unmanaged C++.
PseudoCode
Code:
Start
Grab hWnd
Grab DC
CreateBitmap
Toggle Bitmap Colors?
Write Bitmap to DC using BitBlt?
Release DC
End
Does that look like itll work? I havent used bitmaps before either, so hopefully itll be a good learning tool. I am using Unmanaged C++.