Click here to Skip to main content
15,921,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEnumChildWindows Pin
Mustafa Demirhan27-Oct-01 10:41
Mustafa Demirhan27-Oct-01 10:41 
GeneralRe: EnumChildWindows Pin
Christian Graus27-Oct-01 20:36
protectorChristian Graus27-Oct-01 20:36 
GeneralRe: EnumChildWindows Pin
Mustafa Demirhan28-Oct-01 5:24
Mustafa Demirhan28-Oct-01 5:24 
GeneralRe: EnumChildWindows Pin
Christian Graus28-Oct-01 10:28
protectorChristian Graus28-Oct-01 10:28 
GeneralRe: EnumChildWindows Pin
Todd Smith28-Oct-01 13:48
Todd Smith28-Oct-01 13:48 
QuestionGetting a combobox in a listview subitem?? Pin
mhowes27-Oct-01 10:04
mhowes27-Oct-01 10:04 
AnswerRe: Getting a combobox in a listview subitem?? Pin
#realJSOP28-Oct-01 3:40
professional#realJSOP28-Oct-01 3:40 
Questionputting information into controls that are in a CPropertyPage???? Pin
DanYELL27-Oct-01 5:40
DanYELL27-Oct-01 5:40 
I am going bonkers. I received a handful of responses which I printed out, but I still can't get
this to work.

I call a modal property sheet with two (2) property pages. I use the following code:

CPropertySheet sheet("PropertySheet");
CPropertyPage1 Page1;
CPropertyPage2 Page2;

sheet.AddPage(&Page1);
sheet.AddPage(&Page2);

sheet.SetActivePage(1);
sheet.SetActivePage(0);

if (sheet.DoModal() == ID_OK) { }


I have single and multiline edit boxes, check boxes, and a CListBox in the property pages. If I
type the following before I call DoModal():

Page1.m_edit1 = "hello";

I have no errors. For the single line edit box, this text appears. If I try putting text in a multiline
edit box or a simple combobox by typing say:

Page1.m_combo.SetCurSel(3);

I get a debug assertion error because m_combo is null or the multiline edit box is null.

I tried typing something like:

CWnd *pWnd;
pWnd->GetDlgItem();

then using SetWindowText(), but this doesn't work either.

SO MY QUESTION IS: How can I fill edit controls,
like a multiline edit box, a combo box, or
list box, in a property page before
calling DoModal()?????

Please, please, any response any one can give me will be greatly appreciated.

Sincerely,
Danielle (an overworked graduate student)
AnswerRe: putting information into controls that are in a CPropertyPage???? Pin
Chris Losinger27-Oct-01 5:47
professionalChris Losinger27-Oct-01 5:47 
AnswerRe: putting information into controls that are in a CPropertyPage???? Pin
Stan Shannon27-Oct-01 5:52
Stan Shannon27-Oct-01 5:52 
GeneralRe: putting information into controls that are in a CPropertyPage???? Pin
Stan Shannon27-Oct-01 12:41
Stan Shannon27-Oct-01 12:41 
AnswerRe: putting information into controls that are in a CPropertyPage???? Pin
Michael Dunn27-Oct-01 8:03
sitebuilderMichael Dunn27-Oct-01 8:03 
QuestionGetting console cursor position? Pin
Erik Hammar27-Oct-01 3:59
Erik Hammar27-Oct-01 3:59 
AnswerRe: Getting console cursor position? Pin
Nish Nishant27-Oct-01 4:05
sitebuilderNish Nishant27-Oct-01 4:05 
GeneralThanks a lot Pin
Erik Hammar27-Oct-01 4:12
Erik Hammar27-Oct-01 4:12 
QuestionHow to print a web page in my program? Pin
27-Oct-01 2:46
suss27-Oct-01 2:46 
AnswerRe: How to print a web page in my program? Pin
27-Oct-01 3:10
suss27-Oct-01 3:10 
AnswerRe: How to print a web page in my program? Pin
Not Active27-Oct-01 5:07
mentorNot Active27-Oct-01 5:07 
AnswerThanks all the people help me,but I need sample code. Pin
27-Oct-01 15:57
suss27-Oct-01 15:57 
GeneralInternet Explorer view ... Pin
Hadi Rezaee27-Oct-01 1:48
Hadi Rezaee27-Oct-01 1:48 
GeneralRe: Internet Explorer view ... Pin
Nish Nishant27-Oct-01 2:44
sitebuilderNish Nishant27-Oct-01 2:44 
GeneralRe: Internet Explorer view ... Pin
Hadi Rezaee27-Oct-01 9:46
Hadi Rezaee27-Oct-01 9:46 
GeneralRe: Internet Explorer view ... Pin
Nish Nishant27-Oct-01 19:00
sitebuilderNish Nishant27-Oct-01 19:00 
GeneralRe: Internet Explorer view ... Pin
Not Active27-Oct-01 5:05
mentorNot Active27-Oct-01 5:05 
GeneralFull Screen Pin
27-Oct-01 0:36
suss27-Oct-01 0:36 

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.