News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Desktop Doodle

Started by gwapo, April 10, 2006, 03:07:13 AM

Previous topic - Next topic

gwapo

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
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) 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/

Hope to hear some feedback, and/or suggestions.

Cheers,

-chris

[attachment deleted by admin]

Mincho Georgiev

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!

gwapo

Thanks shaka_zulu  :)

Regards,

-chris

hutch--

Chris,

It seems to work fine on my win2000.  :U
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

gwapo

Thanks for testing on Win2K hutch [:)]

-chris

skywalker

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
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) 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/

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?


bloodhound


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


PBrennick

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
The GeneSys Project is available from:
The Repository or My crappy website

Faiseur

Hello Chris,

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



French asm Forum: http://www.asmforum.net/   Website: http://www.faiseur.net/

gwapo

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

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

gwapo

You mean adding something like a toolbox? Where we can choose from pencil, shape tools and something similar?