|
-
November 10th, 2010, 12:06 AM
#1
RichEdit CONTEXTMENU Cursor Fix
if your having trouble with the RichEdit control not displaying the proper cursor during a right click contextmenu, here is the fix for it...
Code:
////the message handler
case WM_SETCURSOR:
{
if(m_bMenuOpen)
{
HCURSOR m_hArrow = LoadCursor(NULL,IDC_ARROW);
::SetCursor(m_hArrow);
return TRUE;
}
break;
}
////////////////////////
///the menu function...
m_bMenuOpen = TRUE;
TrackPopupMenu(hMenu,0,pt.x,pt.y,0,m_hWnd,NULL);
m_bMenuOpen = FALSE;
///////////////////////////
the standard ::SetCursor does not work for the RichEdit controls, figured this would help some people out doing searches on here, I know I found nothing on the net or during searches on here on the subject
-
December 10th, 2010, 07:33 PM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|