nanogui: Request for comments - Microwindows


Previous by date: 5 Oct 1999 20:15:35 -0000 Re: Licensing summary, Bradley D. LaRonde
Next by date: 5 Oct 1999 20:15:35 -0000 Re: Request for comments - Microwindows, Darran D. Rimron
Previous in thread: 5 Oct 1999 20:15:35 -0000 Re: Request for comments - Microwindows, Darran D. Rimron
Next in thread: 5 Oct 1999 20:15:35 -0000 Re: Request for comments - Microwindows, Darran D. Rimron

Subject: RE: Request for comments - Microwindows
From: Greg Haerr ####@####.####
Date: 5 Oct 1999 20:15:35 -0000
Message-Id: <01BF0F3B.C8F96D60.greg@censoft.com>

: One totally unreleased point also, I want to write a display driver for
: Win32, kinda like GGI, any ideas for a start point, other than
: DirectDraw, anyone?
:

	I was going to write both a win32 driver and an Xlib driver.  At
first I thought the idea of running Windows ontop of windows was completely
ridiculous, but then I remembered that some people develop under windows,
and I want them to develop for microwindows also.

	So.  This is how to do it.

	1. Create a new screen driver source file, scr_win32.c

	2. Setup a make file so that cl -I<windows_sdk> is included
for this file, _not_ for the rest of the project (which has it's own windows.h)

	3. Create a single window of your own class, and set WS_MAXIMIZED.

	4. Read the window coordinates using GetClientRect and set the scrdev 
struct members.

	5. Implment the driver's drawhline and drawvline using MoveToEx and LineTo

	6. Goto step one, replace "screen" with [mouse..kbd] and repeat accordingly ;)

Let me know if you need help.  I may just write it myself.

Greg

Previous by date: 5 Oct 1999 20:15:35 -0000 Re: Licensing summary, Bradley D. LaRonde
Next by date: 5 Oct 1999 20:15:35 -0000 Re: Request for comments - Microwindows, Darran D. Rimron
Previous in thread: 5 Oct 1999 20:15:35 -0000 Re: Request for comments - Microwindows, Darran D. Rimron
Next in thread: 5 Oct 1999 20:15:35 -0000 Re: Request for comments - Microwindows, Darran D. Rimron


Powered by ezmlm-browse 0.20.