Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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


Start
Grab hWnd
Grab DC
CreateBitmap
Toggle Bitmap Colors?
Write Bitmap to DC using BitBlt?
Release DC
End
[/Code]

 

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++.

-Sean

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...