SIBUK
January 22nd, 2008, 08:08 AM
Hello! I was wondering if someone could maybe give me some advice. Does anyone know how the 'Cells' work in Microsoft Excel? Are they just a massive array of thousands of Edit Controls, each one individually created using CreateWindowEx when the application launches?
The reason I ask is because I am making an application which needs to (depending on what the user selects) generate a page full of Edit Controls which contain various information such as names, addresses, dates etc. The user then needs to be able to edit things as they see fit, save the data and then print it all off. In essence, just like an Excel spreadsheet.
But, im not really sure how Im going to do it. So far the only way I can think of is to procedurally generate a whole bunch of edit controls and lay them all out nicely like in an Excel spreadsheet. They need to be procedurally generated because there will be a different number of them each time so its not like I can use the Resources editer in VC++ to lay them all out ready.
Does anybody have any ideas on the best way of going about doing this, or can give any indication of how it is done in Excel?
The reason I ask is because I am making an application which needs to (depending on what the user selects) generate a page full of Edit Controls which contain various information such as names, addresses, dates etc. The user then needs to be able to edit things as they see fit, save the data and then print it all off. In essence, just like an Excel spreadsheet.
But, im not really sure how Im going to do it. So far the only way I can think of is to procedurally generate a whole bunch of edit controls and lay them all out nicely like in an Excel spreadsheet. They need to be procedurally generated because there will be a different number of them each time so its not like I can use the Resources editer in VC++ to lay them all out ready.
Does anybody have any ideas on the best way of going about doing this, or can give any indication of how it is done in Excel?