Click here to Skip to main content
16,005,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HELP FILE vc++ Pin
sudeep_br15-May-06 4:43
sudeep_br15-May-06 4:43 
AnswerRe: HELP FILE vc++ Pin
Hamid_RT15-May-06 4:23
Hamid_RT15-May-06 4:23 
GeneralRe: HELP FILE vc++ Pin
sudeep_br15-May-06 4:50
sudeep_br15-May-06 4:50 
AnswerRe: HELP FILE vc++ Pin
Russell'15-May-06 5:17
Russell'15-May-06 5:17 
GeneralRe: HELP FILE vc++ Pin
sudeep_br15-May-06 6:40
sudeep_br15-May-06 6:40 
GeneralRe: HELP FILE vc++ Pin
Russell'16-May-06 23:14
Russell'16-May-06 23:14 
QuestionHand cursor on static box Pin
Aryan S14-May-06 22:57
Aryan S14-May-06 22:57 
AnswerRe: Hand cursor on static box Pin
Nishad S14-May-06 23:28
Nishad S14-May-06 23:28 
The code is a little bit terrifying Smile | :)

Because if you just want to load the hand cursor, you will get it by
LoadCursor( 0, MAKEINTRESOURCE(32649))
Another thing is SetCursor will not change the cursor permanently.

Try this
BOOL MainWindow::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
{
    if( pWnd == &m_MyStatic )
    {
        SetCursor( LoadCursor( 0, MAKEINTRESOURCE(32649) ) );
        return TRUE;
    }
	return CWnd::OnSetCursor(pWnd, nHitTest, message);
}


CWnd should be replaced by your class name.


- NS -
GeneralRe: Hand cursor on static box Pin
Nibu babu thomas15-May-06 0:00
Nibu babu thomas15-May-06 0:00 
GeneralRe: Hand cursor on static box Pin
Nishad S15-May-06 0:04
Nishad S15-May-06 0:04 
GeneralRe: Hand cursor on static box Pin
Nibu babu thomas15-May-06 0:13
Nibu babu thomas15-May-06 0:13 
GeneralRe: Hand cursor on static box Pin
Nishad S15-May-06 0:18
Nishad S15-May-06 0:18 
GeneralRe: Hand cursor on static box Pin
Nibu babu thomas15-May-06 0:21
Nibu babu thomas15-May-06 0:21 
GeneralRe: Hand cursor on static box Pin
Nishad S15-May-06 0:36
Nishad S15-May-06 0:36 
GeneralRe: Hand cursor on static box Pin
Nibu babu thomas15-May-06 0:38
Nibu babu thomas15-May-06 0:38 
GeneralRe: Hand cursor on static box Pin
Nishad S15-May-06 0:42
Nishad S15-May-06 0:42 
QuestionActiveX from Doc/View Pin
Kikso14-May-06 22:28
Kikso14-May-06 22:28 
QuestionVS 2005 Intellisense Pin
Steve Thresher14-May-06 22:13
Steve Thresher14-May-06 22:13 
AnswerRe: VS 2005 Intellisense Pin
Russell'14-May-06 22:23
Russell'14-May-06 22:23 
GeneralRe: VS 2005 Intellisense Pin
Steve Thresher14-May-06 22:31
Steve Thresher14-May-06 22:31 
GeneralRe: VS 2005 Intellisense Pin
Russell'14-May-06 22:57
Russell'14-May-06 22:57 
GeneralRe: VS 2005 Intellisense Pin
Steve Thresher14-May-06 23:23
Steve Thresher14-May-06 23:23 
GeneralRe: VS 2005 Intellisense Pin
Russell'15-May-06 0:29
Russell'15-May-06 0:29 
GeneralRe: VS 2005 Intellisense Pin
Steve Thresher15-May-06 0:35
Steve Thresher15-May-06 0:35 
GeneralRe: VS 2005 Intellisense Pin
Saurabh.Garg14-May-06 23:36
Saurabh.Garg14-May-06 23:36 

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.