Article View: comp.os.ms-windows.programmer.misc
Article #1589Spreadsheets/Dynamic arrays (visually)
From: jennifer a. teed
Date: Wed, 14 Oct 1992 00:56
Date: Wed, 14 Oct 1992 00:56
46 lines
2645 bytes
2645 bytes
Hello, everyone. I'm working on my first Windows project, and I have one major problem. One of the things I need to implement is a two dimensional array that is dynamically sized (i.e. at run time) in both directions (similar to a spread sheet). I don't need to do anything fancy with the array once it's created (besides edit the values in cells). I know the number of cells at run time (they are user specified). Once specified, this number is fixed. Doing something like this statically is a piece of cake. Just set up an array of edit boxes in the .rc file. However, I can't seem to find anything that does this dynamically. Perhaps I'm missing a better way of doing this. (I've thought about using a single edit box above a dynamically drawn array in the rest of the client area, but then how do you detect which cell you're in? and how do you send the messages back?) I would gladly accept any help or pointers to information or sample code. I've been thru the SDK manuals, the MFC manuals, the Petzold book, and numerous others. If I'm missing something somewhere in one of them about this, please point it out to me. :) I'm using the Microsoft Foundation Classes, but anything I could find would help (I've got access to the Borland stuff, as well as the regular MS C SDK.). I have been unable to find even a simple spreadsheet in the sample code. Is the reason I have been unable to find anything like this because it's so difficult to do that no-one is willing to give it away? Please respond directly to me through email. If interest warrants, I'll post a summary. Thanks in advance for all of your help! --Jen /***********************************************************************/ /*Jennifer Teed * "But to risk we must, for the greatest */ /*United States Salinity * hazard in life is to risk nothing. For */ /*Laboratory * the man or woman who risks nothing, */ /*Riverside, CA 92507 * has nothing, does nothing, IS nothing."*/ /*jteed@ucrengr.ucr.edu * (I dunno who it's by, but I like it :) */ /***********************************************************************/
Technical Details
Message-ID:
<22933@galaxy.ucr.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!network.ucsd.edu!galaxy!ucrengr!jteedShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!network.ucsd.edu!galaxy!ucrengr!jteed From: jteed@ucrengr.ucr.edu (jennifer a. teed) Newsgroups: comp.os.ms-windows.programmer.misc Subject: Spreadsheets/Dynamic arrays (visually) Message-ID: <22933@galaxy.ucr.edu> Date: 14 Oct 92 00:56:59 GMT Article-I.D.: galaxy.22933 Sender: news@galaxy.ucr.edu Organization: University of California, Riverside Lines: 46 Nntp-Posting-Host: ucrengr