Click here to Skip to main content
15,927,593 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRich Text Edit Pin
HongPhan2-Nov-06 14:01
HongPhan2-Nov-06 14:01 
AnswerRe: Rich Text Edit Pin
Mark Salsbery2-Nov-06 14:24
Mark Salsbery2-Nov-06 14:24 
AnswerRe: Rich Text Edit Pin
Hamid_RT3-Nov-06 5:43
Hamid_RT3-Nov-06 5:43 
QuestionDynamic Generation of Child Dialog Windows Pin
acerunner3162-Nov-06 13:10
acerunner3162-Nov-06 13:10 
AnswerRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery2-Nov-06 13:38
Mark Salsbery2-Nov-06 13:38 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3162-Nov-06 13:55
acerunner3162-Nov-06 13:55 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery2-Nov-06 14:21
Mark Salsbery2-Nov-06 14:21 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3162-Nov-06 15:06
acerunner3162-Nov-06 15:06 
I understand than all controls must have a unique ID, but if I were to generate the controls dynamically, I want a code that will generate the ID dynamically as well. I don't want to repeat this code for IDC_BUTTON1 through IDC_BUTTON200. Is there a way generate the ID in a for loop or something?

Can you also elaborate on passing pointers from parent window to child window? I am currently trying to call a function of the child class from the parent class to have it update the edit boxes.
for example: CChildDlg::UpdateEditBoxes();
but i'm getting the error "illegal call of non-static member function".
I want to be able to control when the edit boxes are updated from the parent window. So would I have to pass a pointer everytime I update?

Thanks again.
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery2-Nov-06 15:33
Mark Salsbery2-Nov-06 15:33 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3163-Nov-06 10:12
acerunner3163-Nov-06 10:12 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery3-Nov-06 10:44
Mark Salsbery3-Nov-06 10:44 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3163-Nov-06 13:16
acerunner3163-Nov-06 13:16 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3163-Nov-06 14:42
acerunner3163-Nov-06 14:42 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery3-Nov-06 15:03
Mark Salsbery3-Nov-06 15:03 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3166-Nov-06 9:42
acerunner3166-Nov-06 9:42 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery6-Nov-06 10:52
Mark Salsbery6-Nov-06 10:52 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
acerunner3166-Nov-06 13:10
acerunner3166-Nov-06 13:10 
GeneralRe: Dynamic Generation of Child Dialog Windows Pin
Mark Salsbery2-Nov-06 15:36
Mark Salsbery2-Nov-06 15:36 
QuestionIE style status bar on a dialog Pin
aquawicket2-Nov-06 12:24
aquawicket2-Nov-06 12:24 
AnswerRe: IE style status bar on a dialog Pin
Jörgen Sigvardsson2-Nov-06 12:30
Jörgen Sigvardsson2-Nov-06 12:30 
GeneralRe: IE style status bar on a dialog Pin
aquawicket2-Nov-06 18:12
aquawicket2-Nov-06 18:12 
QuestionNeed help to beginner's question Pin
bloodwinner2-Nov-06 10:52
bloodwinner2-Nov-06 10:52 
AnswerRe: Need help to beginner's question Pin
Rama Krishna Vavilala2-Nov-06 11:09
Rama Krishna Vavilala2-Nov-06 11:09 
AnswerRe: Need help to beginner's question Pin
David Crow2-Nov-06 11:09
David Crow2-Nov-06 11:09 
AnswerRe: Need help to beginner's question Pin
Mila0252-Nov-06 11:14
Mila0252-Nov-06 11: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.