Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CRichEditCtrl doesn't get WM_LBUTTONUP

CRichEditCtrl doesn't get WM_LBUTTONUP

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingquestion
1 Posts 1 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jeremy Iverson
    wrote on last edited by
    #1

    Hi, I have a subclass of CRichEditCtrl, and for some reason it does not receive the WM_LBUTTONUP message. I've verified this with Spy++, as well as the following code: void CCommandLineEdit::OnLButtonDown(UINT nFlags, CPoint point) { TRACE("OnLButtonDown()\n"); CRichEditCtrl::OnLButtonDown(nFlags, point); } void CCommandLineEdit::OnLButtonUp(UINT nFlags, CPoint point) { TRACE("OnLButtonUp()\n"); CRichEditCtrl::OnLButtonUp(nFlags, point); } Commenting out CRichEditCtrl::OnLButtonDown(...) does allow the OnLButtonUp function to be called, but this also prevents the user from moving the caret by clicking the mouse anywhere (as well as making any type of selection with the mouse). I do have ENM_MOUSEEVENTS specified in my SetEventMask() call. Also, the problem isn't unique to this individual control. Has anybody seen this problem before or know of a way around it? (Preferably other than setting a timer on lbuttondown and polling for the button to be released). Thanks for any help! Jeremy

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups