Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 11th, 2008, 3:57 AM   #1
const
Newbie
 
const's Avatar
 
Join Date: Mar 2008
Location: Athens
Posts: 1
Rep Power: 0 const is on a distinguished road
Visible form but without interaction.

Hello, I make a simple application just for fun that it will convert the whole desktop into an aquarium (or varied themes) . Currently, I have figured out what to do but I would like gather some other opinions just to make sure that I do not do anything wrong.

I have a form that:
  • has no controls
  • is maximized to screen resolution
  • it sits on top of other windows
  • and shows an icon on system tray

I will use this form for varied GDI+ algorithms (pixel capturing,editing,and display) while passing all user input (like mouse, keyboard and other available focus functions) to desktop environment, as normal.

This form must be visible to user's eye, but invisible to focus and input (act like a "ghost" form). How can I do that?

Thanks!
const is offline   Reply With Quote
Old Mar 11th, 2008, 5:26 PM   #2
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Re: Visible form but without interaction.

So, in other words, you want to draw directly to the Desktop? I don't know how to do this in .NET (or if you can), but if you go down to the native Windows programming level you can get the Device Context of the desktop and then treat it like any other window. You can do this in VC++ using:
c++ Syntax (Toggle Plain Text)
  1. HDC desktopHdc = GetDC(NULL);
Now that you have the dc of the desktop, you can pass it to GDI+ functions to draw on.
OpenLoop is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling form Jabo Visual Basic .NET 2 Mar 7th, 2008 4:08 PM
Show or hiding forms/modifying control properties ..from different a form.. cloud- C# 4 Nov 10th, 2006 10:51 AM
Form Submit Blues MegaArcon Python 3 Dec 14th, 2005 4:20 PM
.NET Timer Form closing issue MBirchmeier C# 4 Nov 21st, 2005 10:00 AM
entering data into excel from a form glevine Perl 1 Nov 18th, 2005 5:03 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:33 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC