Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: class structure Pin
Cedric Moonen10-May-06 3:00
Cedric Moonen10-May-06 3:00 
GeneralRe: class structure Pin
vikramlinux10-May-06 3:05
vikramlinux10-May-06 3:05 
AnswerRe: class structure Pin
Maximilien10-May-06 3:12
Maximilien10-May-06 3:12 
GeneralRe: class structure Pin
vikramlinux10-May-06 3:18
vikramlinux10-May-06 3:18 
AnswerRe: class structure Pin
Nick_Kisialiou10-May-06 6:25
Nick_Kisialiou10-May-06 6:25 
GeneralRe: class structure Pin
NiceNaidu10-May-06 19:36
NiceNaidu10-May-06 19:36 
GeneralRe: class structure Pin
NiceNaidu10-May-06 19:42
NiceNaidu10-May-06 19:42 
QuestionSetCursor for CMyStatic isn't working??? Pin
YaronNir10-May-06 2:22
YaronNir10-May-06 2:22 
Hi all,

I have a class CMyStatic which inherites from CStatic.

In the class constructor i load 2 cursors (looking at their handle in debug they are looking fine).

I implement 2 events : ON_WM_SETCURSOR() and ON_WM_NCHITTEST()

in the hittest i check a certain position, and in the WM_SETCURSOR i check if i am in that position i do :

...
::SetCursor(HT_MYHITTEST == nHitTest ? m_hCursor1 : m_hCursor2);
return CStatic::OnSetCursor(pWnd, nHitTest, message);


problem is i never see the icon changed ???

help?

Yaron

Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp

don't forget to vote Smile | :)
AnswerRe: SetCursor for CMyStatic isn't working??? Pin
YaronNir10-May-06 2:46
YaronNir10-May-06 2:46 
GeneralRe: SetCursor for CMyStatic isn't working??? Pin
Nishad S10-May-06 3:01
Nishad S10-May-06 3:01 
GeneralRe: SetCursor for CMyStatic isn't working??? Pin
Hamid_RT10-May-06 3:10
Hamid_RT10-May-06 3:10 
QuestionEmail notify Pin
Vivek krishna10-May-06 2:19
Vivek krishna10-May-06 2:19 
AnswerRe: Email notify Pin
alan top10-May-06 2:27
alan top10-May-06 2:27 
GeneralRe: Email notify Pin
Vivek krishna10-May-06 2:54
Vivek krishna10-May-06 2:54 
AnswerRe: Email notify Pin
_AnsHUMAN_ 10-May-06 3:01
_AnsHUMAN_ 10-May-06 3:01 
Questioni want answerfor this question Pin
Reddyb10-May-06 2:19
Reddyb10-May-06 2:19 
AnswerRe: i want answerfor this question Pin
toxcct10-May-06 2:20
toxcct10-May-06 2:20 
AnswerRe: i want answerfor this question Pin
Hamid_RT10-May-06 2:24
Hamid_RT10-May-06 2:24 
Questionanswer i want Pin
Reddyb10-May-06 2:14
Reddyb10-May-06 2:14 
AnswerRe: answer i want Pin
toxcct10-May-06 2:17
toxcct10-May-06 2:17 
GeneralRe: answer i want Pin
Cedric Moonen10-May-06 2:18
Cedric Moonen10-May-06 2:18 
GeneralRe: answer i want Pin
Hamid_RT10-May-06 2:25
Hamid_RT10-May-06 2:25 
GeneralRe: answer i want Pin
toxcct10-May-06 2:26
toxcct10-May-06 2:26 
GeneralRe: answer i want Pin
Nibu babu thomas10-May-06 2:25
Nibu babu thomas10-May-06 2:25 
JokeRe: answer i want Pin
toxcct10-May-06 2:28
toxcct10-May-06 2: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.