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

C / C++ / MFC

 
AnswerRe: Implementation of C preprocessor` Pin
enhzflep12-Dec-08 16:14
enhzflep12-Dec-08 16:14 
GeneralRe: Implementation of C preprocessor` Pin
CPallini12-Dec-08 21:47
mveCPallini12-Dec-08 21:47 
AnswerRe: Implementation of C preprocessor` Pin
VC++Maniac12-Dec-08 18:33
VC++Maniac12-Dec-08 18:33 
AnswerRe: Implementation of C preprocessor` Pin
Jijo.Raj12-Dec-08 21:58
Jijo.Raj12-Dec-08 21:58 
QuestionLNK Error when passing iterator Pin
pratap198012-Dec-08 11:56
pratap198012-Dec-08 11:56 
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 
Here is my problem:

I want access to the CPropertySheet parent window so that when I define a list control dynamically in one of its property pages, that list control (and its movement) is tied to the parent CPropertySheet.

I want to do this so that I can "share" one CListCtrl between 2 or 3 property pages.

Here is what I have:

CMyPropSheet
// In my property sheet's header

	CSettingsPage2	*m_pPage2;
// In my property sheet's source

	m_pPage2 = new CSettingsPage2;	// how do I pass THIS property sheet ?
	AddPage ( m_pPage2 );


property page
// In my property page's source

//////////////////////////////////////////////////////////////////
// Constructors/Destructors
//
CSettingsPage2::CSettingsPage2()
	: CPropertyPage(CSettingsPage2::IDD)
{
	// some local vars initialized here

	// How do I get the parent (CPropertySheet) so that I can
	// access screen coordinates relative to property sheet itself?
}
// some function

void CSettingsPage2::DefineList()
{
	// want to initialize my global CListCtrl (create it), 
	// position it relative to the current page
	// and tie its parent to PROPERTY SHEET - so that moving can be done automatically

	g_MyCListCtrl.Create ( dwStyles, rLocRelative2Page, pPropSheet, IDD_SOME_CONSTANT );

}


The one CListCtrl lists items that must appear in 3 property pages - each of the 3 pages will reveal different attributes of the list's items. I know design could be different to accomplish the same, but I want it this way.

Thank you very much!
John John
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 
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 

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.