Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IP address - getting programmatically Pin
Anonymous24-Aug-03 19:22
Anonymous24-Aug-03 19:22 
GeneralRe: IP address - getting programmatically Pin
Mike Dimmick25-Aug-03 22:24
Mike Dimmick25-Aug-03 22:24 
GeneralCustom Tab Control Woes... Pin
adonisv29-Jul-03 12:30
adonisv29-Jul-03 12:30 
GeneralRe: Custom Tab Control Woes... Pin
Dave Bryant29-Jul-03 13:33
Dave Bryant29-Jul-03 13:33 
GeneralRe: Custom Tab Control Woes... Pin
adonisv29-Jul-03 17:08
adonisv29-Jul-03 17:08 
GeneralRe: Custom Tab Control Woes... Pin
Dave Bryant29-Jul-03 17:12
Dave Bryant29-Jul-03 17:12 
GeneralRe: Custom Tab Control Woes... Pin
adonisv29-Jul-03 17:50
adonisv29-Jul-03 17:50 
GeneralThis control is screwy and unstable! Pin
adonisv30-Jul-03 9:34
adonisv30-Jul-03 9:34 
I run this code...and it works every time. WTF | :WTF:

BOOL RDialogForEditingCanalObjects::OnInitDialog() <br />
{<br />
	CDialog::OnInitDialog();<br />
	<br />
	int nPageID = 0;<br />
	<br />
	 this->m_ctrlEditObjectTabs.AddSSLPage (_T("Runtime"),nPageID++,IDD_RUNTIME_TAB); <br />
<br />
	return TRUE;  // return TRUE unless you set the focus to a control<br />
	              // EXCEPTION: OCX Property Pages should return FALSE<br />
}



So I add another page... and it works.

BOOL RDialogForEditingCanalObjects::OnInitDialog() <br />
{<br />
	CDialog::OnInitDialog();<br />
	<br />
	int nPageID = 0;<br />
	<br />
	 this->m_ctrlEditObjectTabs.AddSSLPage (_T("Runtime"),nPageID++,IDD_RUNTIME_TAB); <br />
<br />
	 this->m_ctrlEditObjectTabs.AddSSLPage (_T("Database"),nPageID++,IDD_EDIT_DATABASE_TAB); <br />
<br />
	return TRUE;  // return TRUE unless you set the focus to a control<br />
	              // EXCEPTION: OCX Property Pages should return FALSE<br />
}


I try to add antother page and it crashes. So I comment out the new page and the whole program crashes. Then I comment out that page and the first page loads every time but I can't put the second page back in, you know the one that just worked? OMG | :OMG:

BOOL RDialogForEditingCanalObjects::OnInitDialog() <br />
{<br />
	CDialog::OnInitDialog();<br />
	<br />
	int nPageID = 0;<br />
	<br />
	 this->m_ctrlEditObjectTabs.AddSSLPage (_T("Runtime"),nPageID++,IDD_RUNTIME_TAB); <br />
<br />
	 this->m_ctrlEditObjectTabs.AddSSLPage (_T("Database"),nPageID++,IDD_EDIT_DATABASE_TAB); <br />
<br />
	//this->m_ctrlEditObjectTabs.AddSSLPage (_T("Communications"),nPageID++,IDD_EDIT_COMMUNICATIONS_TAB); <br />
<br />
<br />
	return TRUE;  // return TRUE unless you set the focus to a control<br />
	              // EXCEPTION: OCX Property Pages should return FALSE<br />
}


This control is FIRED! Wink | ;)
GeneralHelp with CExpire Pin
Juan Carlos Cobas29-Jul-03 12:28
Juan Carlos Cobas29-Jul-03 12:28 
GeneralRe: Help with CExpire Pin
pranavamhari29-Jul-03 18:04
pranavamhari29-Jul-03 18:04 
GeneralRe: Help with CExpire Pin
Toni7829-Jul-03 18:14
Toni7829-Jul-03 18:14 
GeneralRe: Help with CExpire Pin
Juan Carlos Cobas30-Jul-03 3:04
Juan Carlos Cobas30-Jul-03 3:04 
GeneralRe: Help with CExpire Pin
pranavamhari30-Jul-03 6:11
pranavamhari30-Jul-03 6:11 
Questionhow to create a sub DC in a DC? Pin
CaesarCZ29-Jul-03 12:17
CaesarCZ29-Jul-03 12:17 
AnswerRe: how to create a sub DC in a DC? Pin
Ravi Bhavnani29-Jul-03 12:30
professionalRavi Bhavnani29-Jul-03 12:30 
Generalfilling and passing SAFEARRAYS Pin
bigeyedfish8129-Jul-03 10:56
bigeyedfish8129-Jul-03 10:56 
GeneralGet ChildFrame from CDocument (MDI app) Pin
Wim Jans29-Jul-03 10:41
Wim Jans29-Jul-03 10:41 
GeneralRe: Get ChildFrame from CDocument (MDI app) Pin
Neville Franks29-Jul-03 11:08
Neville Franks29-Jul-03 11:08 
GeneralRe: Get ChildFrame from CDocument (MDI app) Pin
Wim Jans29-Jul-03 11:28
Wim Jans29-Jul-03 11:28 
GeneralSpeeding Up ComboBox Entry Pin
vss11129-Jul-03 10:04
vss11129-Jul-03 10:04 
GeneralRe: Speeding Up ComboBox Entry Pin
John M. Drescher29-Jul-03 10:15
John M. Drescher29-Jul-03 10:15 
GeneralRe: Speeding Up ComboBox Entry Pin
Alexander M.,29-Jul-03 10:29
Alexander M.,29-Jul-03 10:29 
GeneralRe: Speeding Up ComboBox Entry Pin
Beer2629-Jul-03 10:34
Beer2629-Jul-03 10:34 
GeneralRe: Speeding Up ComboBox Entry Pin
armentage30-Jul-03 3:03
armentage30-Jul-03 3:03 
QuestionHow to save/delete files from within console program Pin
Anonymous29-Jul-03 8:58
Anonymous29-Jul-03 8:58 

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.