Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCopyFile Pin
p_19601-Jun-09 19:49
p_19601-Jun-09 19:49 
AnswerRe: CopyFile Pin
Stephen Hewitt1-Jun-09 20:03
Stephen Hewitt1-Jun-09 20:03 
QuestionOutlook .pst file Pin
Pardhu_M1-Jun-09 19:36
Pardhu_M1-Jun-09 19:36 
AnswerRe: Outlook .pst file Pin
Stuart Dootson2-Jun-09 0:39
professionalStuart Dootson2-Jun-09 0:39 
QuestionReading strings containing escape sequence. Pin
Comp_Users1-Jun-09 19:24
Comp_Users1-Jun-09 19:24 
AnswerRe: Reading strings containing escape sequence. Pin
Cedric Moonen1-Jun-09 20:26
Cedric Moonen1-Jun-09 20:26 
QuestionIntegrated Windows Authentication or NTLM How ? Pin
ERLN1-Jun-09 19:09
ERLN1-Jun-09 19:09 
Questionchange mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron1-Jun-09 19:04
ptr_Electron1-Jun-09 19:04 
I am working on MDI application which has some lengthy operation on
View and also on some dialog boxes, I want to display busy cursor hours glass I implemented as below it is working during the length operation on the View, but when while there was a lengthy operation on the dialog, mouse pointer is not changed on the dialog, but if I move the mouse on the MainFram then the mouse pointer is changed, I want the mouse pointer to be changed on the Dialog also, please advice

view.cpp
void CMyView::PerformLengthyOperation()
      {
            m_ChangeCursor = TRUE; 
            AfxGetApp()->DoWaitCursor(1)

            //...

            AfxGetApp()->DoWaitCursor(-1)
            m_ChangeCursor = FALSE; 

      }
				

      BOOL CMyView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
      {
            if (m_ChangeCursor)
              {
                  RestoreWaitCursor();
                  return TRUE;
              }

            return CView::OnSetCursor(pWnd, nHitTest, message);
      }


Dlg.cpp

void CDlg::PerformLengthyOperation()
      {
            m_ChangeCursor = TRUE; 
            AfxGetApp()->DoWaitCursor(1)

            //...

            AfxGetApp()->DoWaitCursor(-1)
            m_ChangeCursor = FALSE; 

      }

AnswerRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
Chandrasekharan P1-Jun-09 19:50
Chandrasekharan P1-Jun-09 19:50 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion [modified] Pin
ptr_Electron1-Jun-09 20:08
ptr_Electron1-Jun-09 20:08 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
Chandrasekharan P1-Jun-09 20:20
Chandrasekharan P1-Jun-09 20:20 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron2-Jun-09 21:17
ptr_Electron2-Jun-09 21:17 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
Chandrasekharan P2-Jun-09 22:04
Chandrasekharan P2-Jun-09 22:04 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron2-Jun-09 22:23
ptr_Electron2-Jun-09 22:23 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
Chandrasekharan P3-Jun-09 1:11
Chandrasekharan P3-Jun-09 1:11 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion [modified] Pin
ptr_Electron3-Jun-09 2:55
ptr_Electron3-Jun-09 2:55 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
ptr_Electron4-Jun-09 1:00
ptr_Electron4-Jun-09 1:00 
GeneralRe: change mouse pointer for MainFram and dialog in MDI applicaion Pin
gabbasb211-Aug-09 4:41
gabbasb211-Aug-09 4:41 
QuestionCPropertyView Problems Compiling Pin
wdolson1-Jun-09 17:52
wdolson1-Jun-09 17:52 
AnswerRe: CPropertyView Problems Compiling Pin
Stuart Dootson2-Jun-09 2:06
professionalStuart Dootson2-Jun-09 2:06 
GeneralRe: CPropertyView Problems Compiling Pin
wdolson2-Jun-09 21:29
wdolson2-Jun-09 21:29 
GeneralRe: CPropertyView Problems Compiling Pin
Stuart Dootson2-Jun-09 21:39
professionalStuart Dootson2-Jun-09 21:39 
GeneralRe: CPropertyView Problems Compiling Pin
wdolson2-Jun-09 22:03
wdolson2-Jun-09 22:03 
QuestionHi Help me write this program (tuan1111) Pin
tuan11111-Jun-09 17:37
tuan11111-Jun-09 17:37 
QuestionCreating Threads using Class Object functions Pin
jobin0070071-Jun-09 15:38
jobin0070071-Jun-09 15:38 

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.