Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LNK Error when passing iterator Pin
Stuart Dootson12-Dec-08 14:33
professionalStuart Dootson12-Dec-08 14:33 
AnswerRe: LNK Error when passing iterator Pin
Eytukan12-Dec-08 20:07
Eytukan12-Dec-08 20:07 
QuestionPropertyPage - get parent CPropertySheet Pin
john john mackey12-Dec-08 8:24
john john mackey12-Dec-08 8:24 
AnswerRe: PropertyPage - get parent CPropertySheet Pin
Stuart Dootson12-Dec-08 8:47
professionalStuart Dootson12-Dec-08 8:47 
AnswerRe: PropertyPage - get parent CPropertySheet Pin
Jijo.Raj12-Dec-08 8:53
Jijo.Raj12-Dec-08 8:53 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
john john mackey12-Dec-08 9:12
john john mackey12-Dec-08 9:12 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
Jijo.Raj12-Dec-08 10:02
Jijo.Raj12-Dec-08 10:02 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
john john mackey12-Dec-08 10:25
john john mackey12-Dec-08 10:25 
When I tried this implementation of passing the CPropertySheet via the constructor, it compiles ok, but the control is not visible at runtime.

Constructor
CSettingsPage2::CSettingsPage2( CWnd* pParent /*=NULL*/ )
	: CPropertyPage(CSettingsPage2::IDD)
{
	// some local vars initialized here
	m_pParentWnd = pParent;		// save pointer to parent - CPropertySheet

	// Do I need to do something to second line above - CSettingsPage2::IDD ???
}

Instantiate the page and add it
m_pPage2 = new CSettingsPage2( this );  // pass the CPropertySheet pointer
AddPage ( m_pPage2 );

Called on Page2's OnInitDialog
void CSettingsPage2::DefineList()
{
	// this compiles ok
	g_MyCListCtrl.Create ( WS_VISIBLE | WS_CHILD, rLocRelative2Page, m_pParentWnd, IDD_SOME_CONSTANT );

	// but at runtime, I can't see the control
	// I used Spy++ to try to find it... nothing

}

Page2's property page/tab appears ok, it's just that I can't see g_MyCListCtrl anywhere - even looked for the control using Spy++.

Is it an issue of page2's coordinates relative to CPropertySheet? Is it buried under all the property pages that CPropertySheet manages?

I'm stumped Confused | :confused:
GeneralRe: PropertyPage - get parent CPropertySheet Pin
Jijo.Raj12-Dec-08 11:07
Jijo.Raj12-Dec-08 11:07 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
john john mackey12-Dec-08 11:17
john john mackey12-Dec-08 11:17 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
Jijo.Raj12-Dec-08 21:51
Jijo.Raj12-Dec-08 21:51 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
john john mackey13-Dec-08 4:41
john john mackey13-Dec-08 4:41 
GeneralRe: PropertyPage - get parent CPropertySheet Pin
Jijo.Raj13-Dec-08 7:36
Jijo.Raj13-Dec-08 7:36 
Questiondrawing circles Pin
staticv12-Dec-08 3:47
staticv12-Dec-08 3:47 
GeneralRe: drawing circles Pin
Luc Pattyn12-Dec-08 3:52
sitebuilderLuc Pattyn12-Dec-08 3:52 
GeneralRe: drawing circles [modified] Pin
staticv12-Dec-08 3:57
staticv12-Dec-08 3:57 
GeneralRe: drawing circles Pin
CPallini12-Dec-08 4:10
mveCPallini12-Dec-08 4:10 
GeneralRe: drawing circles Pin
Nishad S12-Dec-08 4:13
Nishad S12-Dec-08 4:13 
GeneralRe: drawing circles Pin
enhzflep12-Dec-08 14:31
enhzflep12-Dec-08 14:31 
AnswerRe: drawing circles Pin
CPallini12-Dec-08 4:09
mveCPallini12-Dec-08 4:09 
GeneralRe: drawing circles Pin
Eytukan12-Dec-08 7:14
Eytukan12-Dec-08 7:14 
Question.rc file in visual studio 2008 express edition Pin
Sadaiyappan12-Dec-08 3:26
Sadaiyappan12-Dec-08 3:26 
AnswerRe: .rc file in visual studio 2008 express edition Pin
Iain Clarke, Warrior Programmer12-Dec-08 3:39
Iain Clarke, Warrior Programmer12-Dec-08 3:39 
AnswerRe: .rc file in visual studio 2008 express edition Pin
CPallini12-Dec-08 6:51
mveCPallini12-Dec-08 6:51 
QuestionConverting PCM to GSM06.10 with ACM Pin
CrazyDogg12-Dec-08 3:17
CrazyDogg12-Dec-08 3:17 

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.