Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pre compiled header files ? Pin
_AnsHUMAN_ 18-May-06 19:53
_AnsHUMAN_ 18-May-06 19:53 
GeneralRe: pre compiled header files ? Pin
Stephen Hewitt18-May-06 19:55
Stephen Hewitt18-May-06 19:55 
AnswerRe: pre compiled header files ? Pin
David Crow19-May-06 3:44
David Crow19-May-06 3:44 
AnswerRe: pre compiled header files ? Pin
knoxplusplus23-May-06 7:54
knoxplusplus23-May-06 7:54 
Questionhelp??About mshtml and ie. Pin
shilianghui218-May-06 19:14
shilianghui218-May-06 19:14 
AnswerRe: help??About mshtml and ie. Pin
Laxman Auti18-May-06 20:23
Laxman Auti18-May-06 20:23 
AnswerRe: help??About mshtml and ie. Pin
Stephen Hewitt18-May-06 20:57
Stephen Hewitt18-May-06 20:57 
QuestionHow to Change CPropertyPage's Title Pin
zt978818-May-06 19:12
zt978818-May-06 19:12 
How to Change CPropertyPage's Title

i wrote the following code, however, the exception occurs in
int index = m_sheet.GetPageIndex(this);//make a Exception
Thanks
<br />
//Main.h<br />
CPropertySheet	m_sheet;<br />
CAboutDlg        m_about;<br />
//Main.cpp<br />
...<br />
	m_sheet.AddPage(&m_about);<br />
	m_sheet.Create(this, WS_CHILD|WS_VISIBLE,WS_EX_CONTROLPARENT);<br />
	m_sheet.SetWindowPos(NULL, 4, 4,25, 50, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);<br />
....<br />
//CAbout.cpp<br />
...<br />
        m_sheet = GetPrient();<br />
        CString szDlgName(_T("test"));<br />
	TC_ITEM   TabCtrlItem;     <br />
        TabCtrlItem.mask   =   TCIF_TEXT;     <br />
	TabCtrlItem.dwState   =   TCIS_BUTTONPRESSED;   <br />
	TabCtrlItem.pszText = buf;<br />
<br />
	strcpy(TabCtrlItem.pszText,szDlgName);<br />
<br />
	int index = m_sheet.GetPageIndex(this);//make a Exception<br />
// probably the m_sheet is null caused exception, why it is happened<br />
	m_sheet.GetTabControl()->SetItem(index,&TabCtrlItem);<br />
<br />
...<br />


hi

-- modified at 1:26 Friday 19th May, 2006
AnswerRe: How to Change CPropertyPage's Title Pin
_anil_18-May-06 20:55
_anil_18-May-06 20:55 
GeneralRe: How to Change CPropertyPage's Title Pin
zt978818-May-06 21:11
zt978818-May-06 21:11 
GeneralRe: How to Change CPropertyPage's Title Pin
_anil_18-May-06 21:36
_anil_18-May-06 21:36 
GeneralRe: How to Change CPropertyPage's Title Pin
zt978818-May-06 22:20
zt978818-May-06 22:20 
AnswerRe: How to Change CPropertyPage's Title Pin
Peter Weyzen18-May-06 21:09
Peter Weyzen18-May-06 21:09 
GeneralRe: How to Change CPropertyPage's Title Pin
zt978818-May-06 21:23
zt978818-May-06 21:23 
QuestionHow to ask Save When exit the app Pin
huutribk200118-May-06 19:05
huutribk200118-May-06 19:05 
AnswerRe: How to ask Save When exit the app Pin
Ganesh_T18-May-06 19:43
Ganesh_T18-May-06 19:43 
AnswerRe: How to ask Save When exit the app Pin
ThatsAlok18-May-06 19:50
ThatsAlok18-May-06 19:50 
GeneralRe: How to ask Save When exit the app Pin
huutribk200118-May-06 21:59
huutribk200118-May-06 21:59 
QuestionReceive the arguments at the application starts running Pin
zahid_ash18-May-06 18:31
zahid_ash18-May-06 18:31 
AnswerRe: Receive the arguments at the application starts running Pin
Stephen Hewitt18-May-06 18:39
Stephen Hewitt18-May-06 18:39 
GeneralRe: Receive the arguments at the application starts running Pin
led mike18-May-06 18:41
led mike18-May-06 18:41 
GeneralRe: Receive the arguments at the application starts running Pin
zahid_ash18-May-06 18:57
zahid_ash18-May-06 18:57 
GeneralRe: Receive the arguments at the application starts running Pin
Stephen Hewitt18-May-06 19:02
Stephen Hewitt18-May-06 19:02 
GeneralRe: Receive the arguments at the application starts running Pin
zahid_ash18-May-06 19:12
zahid_ash18-May-06 19:12 
GeneralRe: Receive the arguments at the application starts running Pin
Stephen Hewitt18-May-06 19:14
Stephen Hewitt18-May-06 19:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.