Click here to Skip to main content
15,921,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simplifying fractions in cpp Pin
namaskaaram9-Feb-05 17:15
namaskaaram9-Feb-05 17:15 
QuestionHow to get pContext of current window Pin
bilas9-Feb-05 1:56
bilas9-Feb-05 1:56 
AnswerRe: How to get pContext of current window Pin
Antony M Kancidrowski9-Feb-05 6:41
Antony M Kancidrowski9-Feb-05 6:41 
GeneralQuestion Pin
Rajesh_K_Sharma9-Feb-05 0:38
Rajesh_K_Sharma9-Feb-05 0:38 
GeneralRe: Question Pin
RChin9-Feb-05 1:27
RChin9-Feb-05 1:27 
GeneralRe: Question Pin
2249179-Feb-05 1:39
2249179-Feb-05 1:39 
GeneralSet cursor problem Pin
eli150219799-Feb-05 0:20
eli150219799-Feb-05 0:20 
GeneralRe: Set cursor problem Pin
namaskaaram9-Feb-05 1:05
namaskaaram9-Feb-05 1:05 
the prob is that when u set the cursor to an another type.....and when u move the Onmousemove getz called and the previous cursor getz put it.....u can sove this by overriding the OnSetCursor function


all mouse messages that are recieved call the in the end the OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) function.....make sure that in this function you specify the code that in this function(it is better).....


if(m_DragOn==FALSE)
{
	
	hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
    SetCursor( hIcon );
}

else
{
	hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR2 );
   SetCursor( hIcon );
}    

Like for example declare the variable say m_DragOn and keep setting/clearing this variable in places where u want the handcursor(assume handcursor is IDC_CURSOR2 and is set when m_DragOn is TRUE)


hope that helpz.....

cheerz.....Big Grin | :-D

"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
GeneralBitmap to jpeg conversion Pin
TheCult9-Feb-05 0:15
TheCult9-Feb-05 0:15 
GeneralRe: Bitmap to jpeg conversion Pin
One Stone9-Feb-05 2:23
One Stone9-Feb-05 2:23 
GeneralRe: Bitmap to jpeg conversion Pin
TheCult9-Feb-05 6:18
TheCult9-Feb-05 6:18 
QuestionHow do I add a new item to the New Shell menu Pin
Anonymous8-Feb-05 23:17
Anonymous8-Feb-05 23:17 
QuestionHow to receive Events from VB OCX ? Pin
Ro_land8-Feb-05 23:14
Ro_land8-Feb-05 23:14 
GeneralSendInput Pin
mcsherry8-Feb-05 22:04
mcsherry8-Feb-05 22:04 
GeneralFocus issues Pin
greekgoddj8-Feb-05 21:57
greekgoddj8-Feb-05 21:57 
Questionhow to change printers without PrintDialog? Pin
george ivanov8-Feb-05 21:19
george ivanov8-Feb-05 21:19 
AnswerRe: how to change printers without PrintDialog? Pin
Anonymous8-Feb-05 21:58
Anonymous8-Feb-05 21:58 
AnswerRe: how to change printers without PrintDialog? Pin
g3e8-Feb-05 23:02
g3e8-Feb-05 23:02 
Questionhow to disable close button of CPropertySheet? Pin
includeh108-Feb-05 20:59
includeh108-Feb-05 20:59 
Generalwindows error help Pin
Tariq8788-Feb-05 20:40
Tariq8788-Feb-05 20:40 
GeneralRe: windows error help Pin
includeh108-Feb-05 21:04
includeh108-Feb-05 21:04 
GeneralRe: windows error help Pin
2249178-Feb-05 21:55
2249178-Feb-05 21:55 
QuestionHow do you capture a run on C++? Pin
Atptour8-Feb-05 20:34
Atptour8-Feb-05 20:34 
AnswerRe: How do you capture a run on C++? Pin
David Crow9-Feb-05 2:28
David Crow9-Feb-05 2:28 
AnswerRe: How do you capture a run on C++? Pin
pc_dev9-Feb-05 21:12
pc_dev9-Feb-05 21:12 

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.