Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTrouble reading from a file. Pin
rassad3-Jun-03 11:33
rassad3-Jun-03 11:33 
GeneralRe: Trouble reading from a file. Pin
Peter Weyzen3-Jun-03 11:44
Peter Weyzen3-Jun-03 11:44 
GeneralRe: Trouble reading from a file. Pin
Dean Goodman3-Jun-03 11:51
Dean Goodman3-Jun-03 11:51 
GeneralRe: Trouble reading from a file. Pin
Anonymous3-Jun-03 13:07
Anonymous3-Jun-03 13:07 
QuestionWhat is Callback Function? Pin
Anonymous3-Jun-03 10:43
Anonymous3-Jun-03 10:43 
AnswerRe: What is Callback Function? Pin
act_x3-Jun-03 12:41
act_x3-Jun-03 12:41 
AnswerRe: What is Callback Function? Pin
ucs3-Jun-03 12:43
ucs3-Jun-03 12:43 
QuestionHow to make a dynamic modal dialog. Pin
Wormhole52303-Jun-03 10:02
Wormhole52303-Jun-03 10:02 
Dynamic dialog is a dialog of which controls
can be created or removed manually depends on the situation.

It is easy to make a dynamic modaless dialog as follows.

////////////////
CDialog *menu;

menu = new CDialog;
menu->Create(IDD_MY_BLANK_DIALOG, this);

// add a edit control if IsEdit is true
if(IsEdit) {
CEdit* pEdit = new CEdit();
RECT rctEdit = {5, 5, 100, 30};
pEdit->Create(WS_VISIBLE | WS_CHILD | WS_TABSTOP, rctEdit,
FromHandle(menu->m_hWnd), 1100);
}

// add a button control if IsBtn is true
if(IsBtn) {
CButton* pButton = new CButton();
RECT rctButton = {5, 35, 100, 60};
pButton->Create(_T("Button"), WS_VISIBLE | WS_CHILD | WS_TABSTOP, rctButton,
FromHandle(menu->m_hWnd), 1101);
}

menu->ShowWindow(SW_SHOW);
///////////////

But I want to make a dynamic modal dialog.
I heard about the InitModalIndirect function but it is somewhat complex to use.
I want a compact code.
Is there any simple method like an above code?

Thanks.
AnswerRe: How to make a dynamic modal dialog. Pin
Joan M3-Jun-03 22:44
professionalJoan M3-Jun-03 22:44 
GeneralRe: How to make a dynamic modal dialog. Pin
Wormhole52303-Jun-03 23:00
Wormhole52303-Jun-03 23:00 
GeneralRe: How to make a dynamic modal dialog. Pin
Joan M3-Jun-03 23:17
professionalJoan M3-Jun-03 23:17 
AnswerRe: How to make a dynamic modal dialog. Pin
Wormhole52304-Jun-03 22:35
Wormhole52304-Jun-03 22:35 
QuestionCImage::StretchBlt does not work!? Pin
schaereran@gmx.net3-Jun-03 9:36
schaereran@gmx.net3-Jun-03 9:36 
AnswerRe: CImage::StretchBlt does not work!? Pin
RaajaOfSelf4-Jun-03 19:10
RaajaOfSelf4-Jun-03 19:10 
GeneralRe: CImage::StretchBlt does not work!? Pin
schaereran@gmx.net5-Jun-03 0:36
schaereran@gmx.net5-Jun-03 0:36 
QuestionHow do i create a random number? Pin
Redeemer-dk3-Jun-03 9:36
Redeemer-dk3-Jun-03 9:36 
AnswerRe: How do i create a random number? Pin
Chris Losinger3-Jun-03 9:53
professionalChris Losinger3-Jun-03 9:53 
GeneralRe: How do i create a random number? Pin
Dean Goodman3-Jun-03 11:38
Dean Goodman3-Jun-03 11:38 
AnswerRe: How do i create a random number? Pin
David Crow3-Jun-03 10:21
David Crow3-Jun-03 10:21 
AnswerRe: How do i create a random number? Pin
RedZenBird3-Jun-03 10:49
RedZenBird3-Jun-03 10:49 
AnswerRe: How do i create a random number? Pin
Anders Molin3-Jun-03 12:14
professionalAnders Molin3-Jun-03 12:14 
GeneralEnableMenuItem does not work Pin
Shay Harel3-Jun-03 9:25
Shay Harel3-Jun-03 9:25 
GeneralRe: EnableMenuItem does not work Pin
valikac3-Jun-03 9:34
valikac3-Jun-03 9:34 
GeneralRe: EnableMenuItem does not work Pin
Shay Harel3-Jun-03 9:48
Shay Harel3-Jun-03 9:48 
GeneralRe: EnableMenuItem does not work Pin
Mike Upton4-Jun-03 0:22
Mike Upton4-Jun-03 0:22 

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.