Prev: draw text on a titlebar
Next: inet_ntop in windows
From: Gamer Z on 7 Dec 2009 15:21 I would like the create a program that displays current CPU usage as part of the background image. The only way I could think of doing this was by using GetDesktopWindow and drawing on that, but nothing appears when I draw, and I would think that I might end up drawing over other windows since they are all children of the desktop window. I'm at a complete loss as to how to do this. Does anyone have any suggestions?
From: Seetharam on 7 Dec 2009 16:59 have a look at this other thread: http://groups.google.com/group/microsoft.public.vc.mfc/browse_thread/thread/b4b4ac3496884bf1/67618e9da847a608?hl=en&lnk=gst&q=draw+on+desktop#67618e9da847a608 -Seetharam
From: Gamer Z on 7 Dec 2009 21:09 On Dec 7, 4:59 pm, Seetharam <smi...(a)gmail.com> wrote: > have a look at this other thread: > > http://groups.google.com/group/microsoft.public.vc.mfc/browse_thread/... > > -Seetharam I'm using pure WinAPI, not the MFC.
From: Christian ASTOR on 8 Dec 2009 02:33 On 7 déc, 21:21, Gamer Z <gamerz...(a)gmail.com> wrote: > I would like the create a program that displays current CPU usage as > part of the background image. The only way I could think of doing this > was by using GetDesktopWindow and drawing on that, but nothing appears > when I draw, and I would think that I might end up drawing over other > windows since they are all children of the desktop window. I'm at a > complete loss as to how to do this. Does anyone have any suggestions? You can use DDraw and Overlay surface or create a window as child of the Desktop or subclass the Listview, etc...
From: Gamer Z on 8 Dec 2009 18:04
On Dec 8, 2:33 am, Christian ASTOR <casto...(a)club-internet.fr> wrote: > You can use DDraw and Overlay surface > or create a window as child of the Desktop > or subclass the Listview, etc... Well, since all windows are children of the desktop automatically, doing the second option isn't hard. I'm thinking that I should make either a full-screen window, somehow keep it behind everything else, and somehow draw it behind the taskbar, OR I could create a regular window and do the same thing, but just position it so that you don't see the window borders. Any ideas on how to do that? |