Article View: comp.os.ms-windows.programmer.tools
Article #498PD Business Graphics Lib Wanted
From: Bill Whedon
Date: Fri, 02 Oct 1992 18:11
Date: Fri, 02 Oct 1992 18:11
47 lines
2881 bytes
2881 bytes
Well, no one has responded except to ask me to forward any responses I got, so
how about a cooperative effort?
COOPERATIVE EFFORT TO PRODUCE A PD BUSINESS GRAPHICS LIB IN DLL AND SOURCE
Here's a real simple front-end:
int bizgraph(HWND hWnd, DATASTRUC *dData);
typedef struct _datastruc {
int bGraphType; /* LINE, BAR, PIE, SCATTER */
char szTitle1[65]; /* Top title (may be blank) */
char szTitle2[65]; /* Second title (may be blank) */
char szXlabel[65]; /* X-axis label (may be blank) */
char szYlabel[65]; /* Y-axis label (may be blank) */
FONTINFO fiT1; /* Main title font info */
FONTINFO fiT2; /* Second title font info */
FONTINFO fiXY; /* Axis label font info */
LOGFONT lfT1; /* Specifics for main title font */
LOGFONT lfT2; /* Specifics for second title font */
LOGFONT lfX; /* Specifics for X-axis font */
LOGFONT lfY; /* Specifics for Y-axis font */
int nGraphs; /* Number of graphs this page */
int nElements; /* Number of elements per graph */
COLORREF **crColors; /* List of colors (1 each title, axis, and graph) /*
double **dDatalist; /* Actual graph data list */
}DATASTRUC;
I have already started on the bar graph. It will be simple, boxed bars with
black outlines, actual number atop each bar. Scale to fit the window, use a
drawing method which will allow straightforward printing. You do not have to
work out the print proc.
Please let me know via email if you will work on a graph type. Remember, no
static data to be used inside your procs. Calculate and present, and get out
when you receive a WM_CLOSE message. If enough people get involved, we should
have something useful in a couple weeks.
PLEASE PARTICIPATE IN THE EFFORT! You will be credited in the source and via
an "About" box shipped with the DLL.
--
---------------------------------------------------------------------
-- the net, working, --
-- sends mail afar --
-- and we, in cybernetic dream --
-- reply --
-- --
-------Bill-Whedon------whedon@netcom.com----------------------------
Technical Details
Message-ID:
<1992Oct2.181147.27540@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!gumby!wupost!csus.edu!netcom.com!whedonShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!wupost!csus.edu!netcom.com!whedon From: whedon@netcom.com (Bill Whedon) Subject: PD Business Graphics Lib Wanted Message-ID: <1992Oct2.181147.27540@netcom.com> Followup-To: poster Keywords: graphics lib business Organization: Netcom - Online Communication Services (408 241-9760 guest) Date: Fri, 2 Oct 1992 18:11:47 GMT Lines: 47