Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hide Application in startup Pin
MsmVc2-Dec-08 1:36
MsmVc2-Dec-08 1:36 
GeneralRe: Hide Application in startup Pin
Jijo.Raj2-Dec-08 1:49
Jijo.Raj2-Dec-08 1:49 
GeneralRe: Hide Application in startup Pin
MsmVc2-Dec-08 18:36
MsmVc2-Dec-08 18:36 
GeneralRe: Hide Application in startup Pin
Jijo.Raj3-Dec-08 6:37
Jijo.Raj3-Dec-08 6:37 
QuestionCxskinbutton Pin
pooja_friends1-Dec-08 18:05
pooja_friends1-Dec-08 18:05 
AnswerRe: Cxskinbutton Pin
_AnsHUMAN_ 1-Dec-08 19:07
_AnsHUMAN_ 1-Dec-08 19:07 
QuestionDesign for VC++ network application Pin
Member 57039051-Dec-08 17:04
Member 57039051-Dec-08 17:04 
Question[SOLVED] How to set cursor IDC_HAND when hover in CMyButton? [SOLVED] [modified] Pin
fantasy12151-Dec-08 15:25
fantasy12151-Dec-08 15:25 
I wanna make cursor IDC_HAND when mouse hover in my CMyButton(derived from CButton).
In CMyButton I deal with ON_WM_MOUSEMOVE message, see code below:
void CMyButton::OnMouseMove(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	
	ASSERT(m_hWnd);
	TRACKMOUSEEVENT tevent;
	tevent.cbSize = sizeof(tevent);
	tevent.dwHoverTime = 0;
	tevent.hwndTrack = m_hWnd;
	tevent.dwFlags = TME_LEAVE;
	_TrackMouseEvent(&tevent);
	
	SetCursor(LoadCursor(NULL, IDC_HAND));//<font color="red">I set cursor to IDC_HAND here, but not work.</font>
	CButton::OnMouseMove(nFlags, point);
	if (FALSE == m_bHovered)
	{
		m_bHovered = TRUE;
		this->Invalidate(TRUE);
	}
}

Hope I state my problem clearly!

modified on Tuesday, December 2, 2008 1:43 AM

AnswerRe: How to set cursor IDC_HAND when hover in CMyButton? Pin
bob169721-Dec-08 16:14
bob169721-Dec-08 16:14 
GeneralRe: How to set cursor IDC_HAND when hover in CMyButton? Pin
fantasy12151-Dec-08 19:42
fantasy12151-Dec-08 19:42 
AnswerRe: How to set cursor IDC_HAND when hover in CMyButton? Pin
bob169721-Dec-08 16:17
bob169721-Dec-08 16:17 
QuestionMFC dialog projects losing 3D look when converting to VS2008 Pin
User 10004301-Dec-08 12:45
User 10004301-Dec-08 12:45 
AnswerRe: MFC dialog projects losing 3D look when converting to VS2008 Pin
Stuart Dootson1-Dec-08 22:03
professionalStuart Dootson1-Dec-08 22:03 
GeneralRe: MFC dialog projects losing 3D look when converting to VS2008 Pin
User 10004302-Dec-08 5:40
User 10004302-Dec-08 5:40 
GeneralRe: MFC dialog projects losing 3D look when converting to VS2008 Pin
Stuart Dootson2-Dec-08 6:44
professionalStuart Dootson2-Dec-08 6:44 
Question[SOLVED] How to create exe or DLL with pdb location as just filename without path ? [modified] Pin
Defenestration1-Dec-08 11:22
Defenestration1-Dec-08 11:22 
AnswerRe: How to create exe or DLL with pdb location as just filename without path ? Pin
Defenestration6-Dec-08 12:41
Defenestration6-Dec-08 12:41 
QuestionC++ dll to C# decompiler Pin
xkrja1-Dec-08 9:49
xkrja1-Dec-08 9:49 
AnswerRe: C++ dll to C# decompiler Pin
Christian Graus1-Dec-08 11:00
protectorChristian Graus1-Dec-08 11:00 
AnswerRe: C++ dll to C# decompiler Pin
Dave Doknjas1-Dec-08 14:27
Dave Doknjas1-Dec-08 14:27 
JokeRe: C++ dll to C# decompiler Pin
Rajesh R Subramanian1-Dec-08 19:55
professionalRajesh R Subramanian1-Dec-08 19:55 
GeneralRe: C++ dll to C# decompiler Pin
xkrja1-Dec-08 23:00
xkrja1-Dec-08 23:00 
GeneralRe: C++ dll to C# decompiler Pin
Rajesh R Subramanian1-Dec-08 23:25
professionalRajesh R Subramanian1-Dec-08 23:25 
GeneralRe: C++ dll to C# decompiler Pin
xkrja1-Dec-08 23:37
xkrja1-Dec-08 23:37 
Questionhow to set the size of a window - please Pin
simon alec smith1-Dec-08 8:40
simon alec smith1-Dec-08 8:40 

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.