How to Change the Caption of a CPropertyPage at run time ???
-
Hi there, i'm trying to change the caption of a CPropertyPage at run time. In OnInitDialog() of this CPropertyPage I'm trying : 1. CWnd::SetWindowText ("XXXX"), and also 2. CPropertyPage::m_psp.dwFlags = m_psp.dwFlags | PSP_USETITLE; CPropertyPage::m_psp.pszTitle = "XXXX" After both tries i call UpdateData() and/ Or Invalidate() and nothing. I'm trying to change both in Wizard Mode and Normal but nothing happens there. Can somone help me with that ???? Thanks alot, Ariel.
-
Hi there, i'm trying to change the caption of a CPropertyPage at run time. In OnInitDialog() of this CPropertyPage I'm trying : 1. CWnd::SetWindowText ("XXXX"), and also 2. CPropertyPage::m_psp.dwFlags = m_psp.dwFlags | PSP_USETITLE; CPropertyPage::m_psp.pszTitle = "XXXX" After both tries i call UpdateData() and/ Or Invalidate() and nothing. I'm trying to change both in Wizard Mode and Normal but nothing happens there. Can somone help me with that ???? Thanks alot, Ariel.
Hi you can use SetTitle() function - before,after or in OnInitDialog check also that you haven't define your own WM_USER + 111 message Mike