Inserting property page into property sheet
Alicia Tupacyupanqui -- alicia@orthodyne.com Wednesday, January 29, 1997 Environment: VC++ 4.0, NT 4.0 I've created a property sheet that dynamically loads multiple property pages. Each property page is identical, but corresponds to a different object (of a set of objects). These objects need to be ordered (to the user) . My questions is: Does anyone know how to insert a property page into the middle of a list of them that exist on a property sheet. I've looked at several sources (which have proven to be helpful in the past) but can't find anything on this. I've attempted to remove all the pages beyond where I want to place the new one, add the new one, and then re-add the old ones. I haven't got this to exactly work, but it seems a little cludgy to me anyway. Any help would be much appreciated. Thanks. Alicia.
Bing Hou -- hou@tfn.com Friday, January 31, 1997 It doesn't seem to me there is a easy way to do this, since the only way(as far as I know) to add a page to a sheet is to send the PSM_ADDPAGE message which will just add to the end. However, since you mentioned that all pages are identical. You may do something like this. When inserting a page, you add a page at end, then you move stuff around such that the new page appears to be the last page. That is, you shift one page's stuff one place to the end until you get to the place you want to insert, then you replace that page's stuff with new stuff. I don't know what stuff you need to move, but it shouldn't be more complex than moving the page itself, and it should be more effecient. Just a idea, if you don't mind. Bing Hou hou@tfn.com ------------------------------------------------------------------------ The shortest distance between two points is always under construction. - Noelie Alito ______________________________ Reply Separator _________________________________ Subject: Inserting property page into property sheet Author: alicia@orthodyne.com (Alicia Tupacyupanqui) at Internet Date: 1/29/97 6:40 PM Environment: VC++ 4.0, NT 4.0 I've created a property sheet that dynamically loads multiple property pages. Each property page is identical, but corresponds to a different object (of a set of objects). These objects need to be ordered (to the user) . My questions is: Does anyone know how to insert a property page into the middle of a list of them that exist on a property sheet. I've looked at several sources (which have proven to be helpful in the past) but can't find anything on this. I've attempted to remove all the pages beyond where I want to place the new one, add the new one, and then re-add the old ones. I haven't got this to exactly work, but it seems a little cludgy to me anyway. Any help would be much appreciated. Thanks. Alicia.
| Вернуться в корень Архива |