The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: gwapo on April 10, 2006, 03:07:13 AM

Title: Desktop Doodle
Post by: gwapo on April 10, 2006, 03:07:13 AM
Hi all,

Here's a small Desktop Doodle program, my first attempt in writing a working program in Win32 assembly, using MASM.

Although the program is useless in that you can't find any good use for it; the program demonstrates some codes worth mentioning:

1. The program shows how to create invisible maximized window you can draw (as a canvas).
2. The program demonstrates how to create tray icon, and process messages from that icon.
    It can process mouse right click to display context menu from tray icon.
3. Demonstrates how to use the message cracker macros. http://www.masmforum.com/simple/index.php?topic=3880.0 (http://www.masmforum.com/simple/index.php?topic=3880.0)
4. Although hard-coded in drawing icons, this program demonstrates how to owner-draw context menus.
5. The program demonstrate how to draw non-breaking points as you drag your mouse pointer in the canvas.

Also, the program uses Vortex's ImageLib (http://www.masmforum.com/simple/index.php?topic=937.0 (http://www.masmforum.com/simple/index.php?topic=937.0)) for displaying the JPEG logo in About Dialog Box.

For the document on how to use this program, see the page here:
http://trider.8m.com/doodle/ (http://trider.8m.com/doodle/)

Hope to hear some feedback, and/or suggestions.

Cheers,

-chris

[attachment deleted by admin]
Title: Re: Desktop Doodle
Post by: Mincho Georgiev on April 10, 2006, 11:22:49 AM
Hello, gwapo!
I like your program very mutch! Indeed, a week ago a friend of mine ask me if i have a program for desktop notes,
well i think yours it will be a really good solution to make a note on your desktop if somebody else use your PC too,
or just to make sure you wouldn't forget something important.
Best Regards!
Title: Re: Desktop Doodle
Post by: gwapo on April 11, 2006, 01:46:03 AM
Thanks shaka_zulu  :)

Regards,

-chris
Title: Re: Desktop Doodle
Post by: hutch-- on April 11, 2006, 01:52:19 AM
Chris,

It seems to work fine on my win2000.  :U
Title: Re: Desktop Doodle
Post by: gwapo on April 11, 2006, 06:42:31 AM
Thanks for testing on Win2K hutch [:)]

-chris
Title: Re: Desktop Doodle
Post by: skywalker on April 11, 2006, 02:14:20 PM
Quote from: gwapo on April 10, 2006, 03:07:13 AM
Hi all,

Here's a small Desktop Doodle program, my first attempt in writing a working program in Win32 assembly, using MASM.

Although the program is useless in that you can't find any good use for it; the program demonstrates some codes worth mentioning:

1. The program shows how to create invisible maximized window you can draw (as a canvas).
2. The program demonstrates how to create tray icon, and process messages from that icon.
    It can process mouse right click to display context menu from tray icon.
3. Demonstrates how to use the message cracker macros. http://www.masmforum.com/simple/index.php?topic=3880.0 (http://www.masmforum.com/simple/index.php?topic=3880.0)
4. Although hard-coded in drawing icons, this program demonstrates how to owner-draw context menus.
5. The program demonstrate how to draw non-breaking points as you drag your mouse pointer in the canvas.

Also, the program uses Vortex's ImageLib (http://www.masmforum.com/simple/index.php?topic=937.0 (http://www.masmforum.com/simple/index.php?topic=937.0)) for displaying the JPEG logo in About Dialog Box.

For the document on how to use this program, see the page here:
http://trider.8m.com/doodle/ (http://trider.8m.com/doodle/)

Hope to hear some feedback, and/or suggestions.

Cheers,

-chris

It's a pretty neat prog. Is there a way to have it write the doodles to the desktop and let user decide when
to erase them with shutting it down?

Title: Re: Desktop Doodle
Post by: bloodhound on April 23, 2006, 05:35:59 AM

When you right-click, the contextual menu is very small and there's no text or its a different language??
also in the system tray..

Title: Re: Desktop Doodle
Post by: PBrennick on May 01, 2006, 06:51:03 AM
Chris,
It runs well on my machine.

QuoteAlthough the program is useless in that you can't find any good use for it; the program demonstrates some codes worth mentioning:

I think you are not correct, here.  This software has potential.  You could easily add a capture function if you wanted to save the doodle.

Paul
Title: Re: Desktop Doodle
Post by: Faiseur on May 02, 2006, 11:58:04 PM
Hello Chris,

a nice idea. Work fine on my Windows XP SP1.



Title: Re: Desktop Doodle
Post by: gwapo on May 08, 2006, 06:16:40 AM
Quote from: bloodhound on April 23, 2006, 05:35:59 AM
When you right-click, the contextual menu is very small and there's no text or its a different language??
also in the system tray..

The painting of the menu is done using the ANSI version of the drawing APIs. This is why it wan't draw Unicode text for the menu.

-chris
Title: Re: Desktop Doodle
Post by: hutch-- on May 08, 2006, 06:25:04 AM
Chris,

Here is one suggestion that came to mind, after I had played with it for a while, I would have liked to have had a rectangle available to more accurately draw frames around selected items rather than scrawl them by hand.
Title: Re: Desktop Doodle
Post by: gwapo on May 08, 2006, 06:38:40 AM
You mean adding something like a toolbox? Where we can choose from pencil, shape tools and something similar?