Click here to Skip to main content
16,010,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
David Crow10-Feb-09 5:15
David Crow10-Feb-09 5:15 
GeneralRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
THA200010-Feb-09 5:37
THA200010-Feb-09 5:37 
GeneralRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
David Crow10-Feb-09 5:49
David Crow10-Feb-09 5:49 
GeneralRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
THA200010-Feb-09 6:37
THA200010-Feb-09 6:37 
GeneralRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
David Crow10-Feb-09 7:48
David Crow10-Feb-09 7:48 
AnswerRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
bulg9-Feb-09 13:23
bulg9-Feb-09 13:23 
GeneralRe: Can VC++ Console (or MFC) can show the pointer to the screen of Windows XP? Pin
Member 592836810-Feb-09 3:59
Member 592836810-Feb-09 3:59 
QuestionButton opens new dialog window and closes old dialog window Pin
Reece Peterson9-Feb-09 9:14
Reece Peterson9-Feb-09 9:14 
Hello,

I was hoping someone could provide an explanation on how to open a new dialog window and close the old dialog window with a click of a button. I can create a new dialog window using:

SecondDlg myDialog;
myDialog.DoModal();

However, I have two windows on the monitor when all I want is the recently opened window. I've tried EndDialog(IDCANCEL) and DestroyWindow(), but this just seems to close both window when the OK or CANCEL button is selected.

void CVetDent_11Dlg::OnBnClickedButton1()
{
// TODO: Add your control notification handler code here
SecondDlg myDialog;
myDialog.DoModal();
EndDialog(IDCANCEL);

Thanks
AnswerRe: Button opens new dialog window and closes old dialog window Pin
Stuart Dootson9-Feb-09 9:37
professionalStuart Dootson9-Feb-09 9:37 
GeneralRe: Button opens new dialog window and closes old dialog window Pin
Reece Peterson10-Feb-09 20:43
Reece Peterson10-Feb-09 20:43 
QuestionRe: Button opens new dialog window and closes old dialog window Pin
David Crow9-Feb-09 10:28
David Crow9-Feb-09 10:28 
AnswerRe: Button opens new dialog window and closes old dialog window Pin
Iain Clarke, Warrior Programmer9-Feb-09 22:34
Iain Clarke, Warrior Programmer9-Feb-09 22:34 
QuestionReading .txt file on server Pin
DanYELL9-Feb-09 9:01
DanYELL9-Feb-09 9:01 
AnswerRe: Reading .txt file on server Pin
Stuart Dootson9-Feb-09 9:32
professionalStuart Dootson9-Feb-09 9:32 
QuestionRe: Reading .txt file on server Pin
David Crow9-Feb-09 10:00
David Crow9-Feb-09 10:00 
QuestionListBox focus Pin
RomTibi9-Feb-09 6:52
RomTibi9-Feb-09 6:52 
AnswerRe: ListBox focus Pin
BadJerry9-Feb-09 6:56
BadJerry9-Feb-09 6:56 
GeneralRe: ListBox focus Pin
RomTibi11-Feb-09 5:53
RomTibi11-Feb-09 5:53 
AnswerRe: ListBox focus Pin
Perspx9-Feb-09 7:38
Perspx9-Feb-09 7:38 
GeneralRe: ListBox focus Pin
RomTibi11-Feb-09 5:53
RomTibi11-Feb-09 5:53 
AnswerRe: ListBox focus Pin
David Crow9-Feb-09 10:30
David Crow9-Feb-09 10:30 
GeneralRe: ListBox focus Pin
RomTibi9-Feb-09 10:39
RomTibi9-Feb-09 10:39 
GeneralRe: ListBox focus Pin
David Crow9-Feb-09 10:40
David Crow9-Feb-09 10:40 
GeneralRe: ListBox focus Pin
RomTibi11-Feb-09 5:54
RomTibi11-Feb-09 5:54 
Questionreading floats in a struct Pin
Jon Hulatt9-Feb-09 6:50
Jon Hulatt9-Feb-09 6:50 

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.