Click here to Skip to main content
15,886,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListBox with titles Pin
S Douglas31-May-05 1:04
professionalS Douglas31-May-05 1:04 
GeneralRe: CListBox with titles Pin
David Crow31-May-05 3:38
David Crow31-May-05 3:38 
QuestionShell functions and versions ? Pin
Ramsus30-May-05 23:07
Ramsus30-May-05 23:07 
AnswerRe: Shell functions and versions ? Pin
David Crow31-May-05 3:41
David Crow31-May-05 3:41 
GeneralMultithreaded horror.. Pin
Bob Stanneveld30-May-05 22:04
Bob Stanneveld30-May-05 22:04 
GeneralProblem solved.. Pin
Bob Stanneveld31-May-05 2:38
Bob Stanneveld31-May-05 2:38 
GeneralVisual C++ Pin
Member 150607130-May-05 21:40
Member 150607130-May-05 21:40 
GeneralRe: Visual C++ Pin
Cedric Moonen30-May-05 21:50
Cedric Moonen30-May-05 21:50 
That's not really complicated. In your handler function from the button, just created the dialog and call DoModal:

void CYourMainForm::OnButton()<br />
{<br />
   CYourDialog Dialog;<br />
   Dialog.DoModal();<br />
}



Of course, the DoModal function will not return until the dialog has been closed.

Hope this helps
GeneralRe: Visual C++ Pin
toxcct30-May-05 22:26
toxcct30-May-05 22:26 
GeneralRe: Visual C++ Pin
benjymous30-May-05 23:21
benjymous30-May-05 23:21 
GeneralRe: Visual C++ Pin
David Crow31-May-05 3:48
David Crow31-May-05 3:48 
QuestionHow To Create a Transparent Pen? Pin
pritamkd30-May-05 20:45
pritamkd30-May-05 20:45 
Questionhow to display string in debug widow. Pin
shumyla198330-May-05 20:31
shumyla198330-May-05 20:31 
AnswerRe: how to display string in debug widow. Pin
MK7830-May-05 20:35
MK7830-May-05 20:35 
AnswerRe: how to display string in debug widow. Pin
BlackDice31-May-05 5:38
BlackDice31-May-05 5:38 
Generalquestion regarding operator overloading! Pin
namaskaaram30-May-05 19:15
namaskaaram30-May-05 19:15 
GeneralRe: question regarding operator overloading! Pin
Johnny ²30-May-05 19:35
Johnny ²30-May-05 19:35 
GeneralRe: question regarding operator overloading! Pin
Rahim Rattani30-May-05 19:45
Rahim Rattani30-May-05 19:45 
GeneralRe: question regarding operator overloading! Pin
S. Senthil Kumar30-May-05 20:58
S. Senthil Kumar30-May-05 20:58 
GeneralRe: question regarding operator overloading! Pin
namaskaaram30-May-05 21:53
namaskaaram30-May-05 21:53 
GeneralCListCtrl auto scrolling problem Pin
Imtiaz Murtaza30-May-05 18:53
Imtiaz Murtaza30-May-05 18:53 
GeneralRe: CListCtrl auto scrolling problem Pin
namaskaaram30-May-05 22:34
namaskaaram30-May-05 22:34 
GeneralImproper highlight on Tree Control Pin
laiju30-May-05 18:38
laiju30-May-05 18:38 
GeneralHelp with switching to module state (DLL) Pin
KnaveR77730-May-05 18:20
KnaveR77730-May-05 18:20 
GeneralVC++ Won't Use Correct Include Directories Pin
User 1278230-May-05 14:31
User 1278230-May-05 14:31 

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.