Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: parallel port Pin
Antti Keskinen30-Jan-04 6:30
Antti Keskinen30-Jan-04 6:30 
GeneralDetecting UPS State Pin
Blake Miller27-Jan-04 15:01
Blake Miller27-Jan-04 15:01 
GeneralRe: Detecting UPS State Pin
David Crow28-Jan-04 2:33
David Crow28-Jan-04 2:33 
GeneralWierd thing with caption... Pin
Snyp27-Jan-04 14:44
Snyp27-Jan-04 14:44 
GeneralRe: Wierd thing with caption... Pin
alex.barylski27-Jan-04 18:33
alex.barylski27-Jan-04 18:33 
GeneralRe: Wierd thing with caption... Pin
Antti Keskinen27-Jan-04 21:50
Antti Keskinen27-Jan-04 21:50 
GeneralRe: Wierd thing with caption... Pin
Snyp28-Jan-04 12:15
Snyp28-Jan-04 12:15 
QuestionHow to hide a dialog temporarily and go to CView to pick a point? Pin
lxy27-Jan-04 14:25
lxy27-Jan-04 14:25 
CMyDialog is a modal dialog invoked in CMyView, in CMyDialog, user can temporarily hide the dialog and go to CMyView window and use mouse to pick a point, then return to the dialog.

But how to implement the function gPickPoint() below,

CPoint gPickPoint()
{
CPoint pt;

// wait? loop? until user pick a point

return pt;
}

CMyView::OnBtnMyDialog()
{
CMyDialog dlg(this);
dlg.DoModal();
}

CMyDialog::OnBtnPickPoint()
{
CPoint pt;
CWnd *pFrameWnd = GetParent();

// hide dialog and go to view window
pFrameWnd->EnableWindow(TRUE);
ShowWindow(SW_HIDE);
pFrameWnd->SetFocus();

// waiting for user to pick a point from view
pt = gPickPoint();

// return from view window to dialog
ShowWindow(SW_SHOW);
SetFocus();
pFrameWnd->EnableWindow(FALSE);
EnableWindow(TRUE);
}
AnswerRe: How to hide a dialog temporarily and go to CView to pick a point? Pin
Antti Keskinen27-Jan-04 21:36
Antti Keskinen27-Jan-04 21:36 
GeneralRe: How to hide a dialog temporarily and go to CView to pick a point? Pin
Anonymous28-Jan-04 16:44
Anonymous28-Jan-04 16:44 
QuestionHow can I get the file size of a file Pin
nachilau27-Jan-04 14:14
nachilau27-Jan-04 14:14 
AnswerRe: How can I get the file size of a file Pin
Brad Bruce27-Jan-04 14:43
Brad Bruce27-Jan-04 14:43 
AnswerRe: How can I get the file size of a file Pin
Michael Gunlock27-Jan-04 17:14
Michael Gunlock27-Jan-04 17:14 
AnswerRe: How can I get the file size of a file Pin
Mukkie28-Jan-04 9:19
Mukkie28-Jan-04 9:19 
GeneralDate format in a List Control Pin
Ger Hayden27-Jan-04 13:20
Ger Hayden27-Jan-04 13:20 
GeneralRe: Date format in a List Control Pin
David Crow27-Jan-04 13:40
David Crow27-Jan-04 13:40 
GeneralRe: Date format in a List Control Pin
Ger Hayden27-Jan-04 19:48
Ger Hayden27-Jan-04 19:48 
GeneralRe: Date format in a List Control Pin
David Crow28-Jan-04 2:28
David Crow28-Jan-04 2:28 
GeneralRe: Date format in a List Control Pin
Ger Hayden31-Jan-04 0:03
Ger Hayden31-Jan-04 0:03 
QuestionHow can I send a certain key to a certain application? (simulate keyboard) Pin
andreir2327-Jan-04 12:19
andreir2327-Jan-04 12:19 
AnswerRe: How can I send a certain key to a certain application? (simulate keyboard) Pin
john john mackey27-Jan-04 12:43
john john mackey27-Jan-04 12:43 
AnswerRe: How can I send a certain key to a certain application? (simulate keyboard) Pin
__Cerb27-Jan-04 14:35
__Cerb27-Jan-04 14:35 
GeneralRetrieve a user's email accounts Pin
LukeV27-Jan-04 12:11
LukeV27-Jan-04 12:11 
GeneralRe: Retrieve a user's email accounts Pin
David Crow27-Jan-04 13:41
David Crow27-Jan-04 13:41 
GeneralRe: Retrieve a user's email accounts Pin
Snyp27-Jan-04 14:49
Snyp27-Jan-04 14:49 

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.