How can I get a PropertyPage title without or before creating?
-
Can I get a property page title specified in Dialog resource editor without creating a page? Best regards, Eugene Pustovoyt
ICQ UIN: 161325180
-
Can I get a property page title specified in Dialog resource editor without creating a page? Best regards, Eugene Pustovoyt
ICQ UIN: 161325180
If the page has not been created then you can not call GetWindowText() on it, but you can get the caption from the tab control (CPropertySheet::GetTabCtrl() then CTabCtrl::GetItem() with TCIF_TEXT flag). If you want it even before the sheet is created then there might be a way using FindResource(), LoadResource(), etc.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
-
If the page has not been created then you can not call GetWindowText() on it, but you can get the caption from the tab control (CPropertySheet::GetTabCtrl() then CTabCtrl::GetItem() with TCIF_TEXT flag). If you want it even before the sheet is created then there might be a way using FindResource(), LoadResource(), etc.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
Thank you. My choice is a FindResource(), LoadResource(), etc.. :) Best regards, Eugene Pustovoyt
ICQ UIN: 161325180