Click here to Skip to main content
15,903,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsmtp client Pin
viliam13-Nov-02 20:48
viliam13-Nov-02 20:48 
GeneralRe: smtp client Pin
Michael P Butler13-Nov-02 23:25
Michael P Butler13-Nov-02 23:25 
GeneralMFC: Drawing within the client area of CMDIFrameWnd Pin
Member 3846413-Nov-02 20:45
Member 3846413-Nov-02 20:45 
GeneralRe: MFC: Drawing within the client area of CMDIFrameWnd Pin
udayGovekar13-Nov-02 21:52
udayGovekar13-Nov-02 21:52 
GeneralRe: MFC: Drawing within the client area of CMDIFrameWnd Pin
Member 3846413-Nov-02 22:06
Member 3846413-Nov-02 22:06 
GeneralRe: MFC: Drawing within the client area of CMDIFrameWnd Pin
udayGovekar13-Nov-02 22:16
udayGovekar13-Nov-02 22:16 
Generalchange cursor Pin
Dennis L13-Nov-02 20:25
Dennis L13-Nov-02 20:25 
GeneralRe: change cursor Pin
Chris Losinger13-Nov-02 20:29
professionalChris Losinger13-Nov-02 20:29 
/////////////////////////////////////////////////////////////////////////////

BOOL CISSimpleViewerDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
{
	if (pWnd==(CWnd *)this) 
	{
		if (nHitTest==HTCLIENT) 
		{
			if ((message==WM_MOUSEMOVE) || (message==WM_LBUTTONDOWN) || (message==WM_LBUTTONUP)) 
			{
            if (m_bNeedGrabber)
            {
               if (m_hDIB!=NULL)
               {
                  if (m_bMouseInImage)
                  {
                     if (m_bBtnDown)
                     {
                        // dragging the image
                        SetCursor(AfxGetApp()->LoadCursor(IDC_CLOSEDHAND));
                     }                                                 
                     else
                     {
                        // just moving over the image
                        SetCursor(AfxGetApp()->LoadCursor(IDC_OPENHAND));
                     }
                     return TRUE;
                  }
               }
            }
         }
      }
   }


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




A conclusion is simply the place where someone got tired of thinking.

GeneralRe: change cursor Pin
Dennis L13-Nov-02 20:56
Dennis L13-Nov-02 20:56 
GeneralRe: change cursor Pin
Chris Losinger13-Nov-02 20:58
professionalChris Losinger13-Nov-02 20:58 
GeneralRe: change cursor Pin
Dennis L13-Nov-02 21:10
Dennis L13-Nov-02 21:10 
GeneralRe: change cursor Pin
Anonymous13-Nov-02 23:37
Anonymous13-Nov-02 23:37 
GeneralRe: change cursor Pin
Paul M Watt14-Nov-02 6:31
mentorPaul M Watt14-Nov-02 6:31 
GeneralRe: change cursor Pin
Rickard Andersson2014-Nov-02 0:07
Rickard Andersson2014-Nov-02 0:07 
GeneralRe: change cursor Pin
Paul M Watt14-Nov-02 6:38
mentorPaul M Watt14-Nov-02 6:38 
General16-bit PCX loader Pin
ISIS5513-Nov-02 17:35
ISIS5513-Nov-02 17:35 
GeneralRe: 16-bit PCX loader Pin
Chris Losinger13-Nov-02 20:26
professionalChris Losinger13-Nov-02 20:26 
QuestionHow to create directories using visual c++ Pin
Anonymous13-Nov-02 17:11
Anonymous13-Nov-02 17:11 
AnswerRe: How to create directories using visual c++ Pin
Chris Richardson13-Nov-02 18:02
Chris Richardson13-Nov-02 18:02 
GeneralRe: How to create directories using visual c++ Pin
Anonymous14-Nov-02 2:25
Anonymous14-Nov-02 2:25 
AnswerRe: How to create directories using visual c++ Pin
Dave Bryant13-Nov-02 18:08
Dave Bryant13-Nov-02 18:08 
AnswerRe: How to create directories using visual c++ Pin
Michael Dunn13-Nov-02 18:35
sitebuilderMichael Dunn13-Nov-02 18:35 
Questionservice? Pin
imran_rafique13-Nov-02 16:48
imran_rafique13-Nov-02 16:48 
AnswerRe: service? Pin
Stephane Rodriguez.13-Nov-02 18:59
Stephane Rodriguez.13-Nov-02 18:59 
GeneralRe: service? Pin
imran_rafique14-Nov-02 16:28
imran_rafique14-Nov-02 16:28 

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.