Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: load cursor for hourglass-arrow Pin
Galatei12-Oct-06 1:21
Galatei12-Oct-06 1:21 
GeneralRe: load cursor for hourglass-arrow Pin
YaronNir12-Oct-06 2:09
YaronNir12-Oct-06 2:09 
AnswerRe: load cursor for hourglass-arrow Pin
Angbo200612-Oct-06 1:41
Angbo200612-Oct-06 1:41 
GeneralRe: load cursor for hourglass-arrow Pin
YaronNir12-Oct-06 2:14
YaronNir12-Oct-06 2:14 
Questionprogress bar in dialog box Pin
zareee12-Oct-06 0:35
zareee12-Oct-06 0:35 
AnswerRe: progress bar in dialog box Pin
Hamid_RT12-Oct-06 0:37
Hamid_RT12-Oct-06 0:37 
AnswerRe: progress bar in dialog box Pin
Mark Salsbery12-Oct-06 5:19
Mark Salsbery12-Oct-06 5:19 
QuestionOnSetCursor - works in 1 dlg but in other doesn't! Pin
YaronNir12-Oct-06 0:27
YaronNir12-Oct-06 0:27 
Hi all,

i have 2 dialogs, dlg1 & dlg2 in both of them i use the same code:

BOOL CDlg1::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
        if (!m_bCondition)
	{
	    ::SetCursor(::LoadCursor(NULL, IDC_WAIT));
	    return TRUE;

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

BOOL CDlg2::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
        if (!m_bCondition)
	{
	    ::SetCursor(::LoadCursor(NULL, IDC_WAIT));
	    return TRUE;

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


problem is that i see the hourglass when mouse is over dlg1, but i don't see the hourglass when mouse is over dlg2????

what am i missing? should i implement an other message?

thanks in advanced
Yaron

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

don't forget to vote Smile | :)

AnswerRe: OnSetCursor - works in 1 dlg but in other doesn't! Pin
prasad_som12-Oct-06 0:38
prasad_som12-Oct-06 0:38 
GeneralRe: OnSetCursor - works in 1 dlg but in other doesn't! Pin
YaronNir12-Oct-06 2:27
YaronNir12-Oct-06 2:27 
AnswerRe: OnSetCursor - works in 1 dlg but in other doesn't! Pin
Hamid_RT12-Oct-06 0:39
Hamid_RT12-Oct-06 0:39 
GeneralRe: OnSetCursor - works in 1 dlg but in other doesn't! Pin
YaronNir12-Oct-06 2:12
YaronNir12-Oct-06 2:12 
Questionproblem in dropping Pin
radhika2812-Oct-06 0:25
radhika2812-Oct-06 0:25 
AnswerRe: problem in dropping Pin
Hamid_RT12-Oct-06 0:48
Hamid_RT12-Oct-06 0:48 
GeneralRe: problem in dropping Pin
radhika2812-Oct-06 1:08
radhika2812-Oct-06 1:08 
GeneralRe: problem in dropping Pin
Hamid_RT13-Oct-06 7:42
Hamid_RT13-Oct-06 7:42 
QuestionDrag and drop files and folders to and from tree control Pin
kiranin12-Oct-06 0:10
kiranin12-Oct-06 0:10 
AnswerRe: Drag and drop files and folders to and from tree control Pin
Hamid_RT12-Oct-06 0:50
Hamid_RT12-Oct-06 0:50 
Questionunable to load driver Pin
ask_you11-Oct-06 23:50
ask_you11-Oct-06 23:50 
AnswerRe: unable to load driver Pin
Hamid_RT12-Oct-06 0:36
Hamid_RT12-Oct-06 0:36 
AnswerRe: unable to load driver Pin
mpk197912-Oct-06 1:46
mpk197912-Oct-06 1:46 
QuestionMFC Messages Pin
baerten11-Oct-06 23:45
baerten11-Oct-06 23:45 
AnswerRe: MFC Messages Pin
tuxyboy12-Oct-06 0:26
tuxyboy12-Oct-06 0:26 
NewsRe: MFC Messages Pin
baerten12-Oct-06 2:07
baerten12-Oct-06 2:07 
QuestionLanguage independent in Dlls Pin
Krishnatv11-Oct-06 23:17
Krishnatv11-Oct-06 23:17 

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.