CPropertyPage
-
The CPropertyPage constructor looks like this CPropertyPage( UINT nIDTemplate, UINT nIDCaption = 0 ); Now the second argument (the UINT nIDCaption) comes from the string table. What if I wanna create multiple tabs from code without knowing how many I'm gonna open. I can't make a string table entry for every tab I wanna make cause I don't know how many I'm going to create. So how can I modify the string that I give to an ID from code ???? Is that possible ?
-
The CPropertyPage constructor looks like this CPropertyPage( UINT nIDTemplate, UINT nIDCaption = 0 ); Now the second argument (the UINT nIDCaption) comes from the string table. What if I wanna create multiple tabs from code without knowing how many I'm gonna open. I can't make a string table entry for every tab I wanna make cause I don't know how many I'm going to create. So how can I modify the string that I give to an ID from code ???? Is that possible ?
-
The CPropertyPage constructor looks like this CPropertyPage( UINT nIDTemplate, UINT nIDCaption = 0 ); Now the second argument (the UINT nIDCaption) comes from the string table. What if I wanna create multiple tabs from code without knowing how many I'm gonna open. I can't make a string table entry for every tab I wanna make cause I don't know how many I'm going to create. So how can I modify the string that I give to an ID from code ???? Is that possible ?
You don't have to specify a value for the second argument (default will be 0). In this case, the title will be taken from the dialog template title!