![]() |
| ||
| Console GDI i Wrote some basic code on something i saw here i while ago and was wondering what people could do with it. it uses a console and you can draw on the console or the entire desktop. i was hopping there was thing people could do to add or improve my code. if you get linker errors you have to add the libgdi32.a library Main.cpp #define _WIN32_WINNT 0x0500 Pen.h #ifndef PEN_H_INCLUDED |
| ||
| Re: Console GDI This has no sense. Drawing must be done in WM_PAINT Console are not for drawing |
| ||
| Re: Console GDI Quote:
To be honest, I can't think of any uses right now, but if were to make a console-based hangman game or something in that order, this might come in useful |
| ||
| Re: Console GDI Well if one was to hide the console window and paint on the main window / active window you could use it in conjunction with something like presentations as a pointing aidor something like that. @marco Thats like saying you should do all DirectX Drawing inside WM_PAINT :) |
| ||
| Re: Console GDI Well my use for this was for presentations. so i can draw on the screen. only problem is that if it draws over anything that changes or moves the line is deleted on that area |
| ||
| Re: Console GDI Store what has been drawn by the user somehow, then redraw it :) |
| ||
| Re: Console GDI thanks but sorry to bother you how do i store what has been painted |
| ||
| Re: Console GDI Store the points at which you have something drawn on the screen in an array/vector or what ever you feel is best. |
| All times are GMT -4. The time now is 8:44 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC