coldfusion244
Junior Contributor
I am attempting to teach myself DC's, 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 it'll work? I haven't used bitmaps before either, so hopefully it'll 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 it'll work? I haven't used bitmaps before either, so hopefully it'll be a good learning tool. I am using Unmanaged C++.