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. problem on show messagebox on ON_EN_CHANGE of edit control.

problem on show messagebox on ON_EN_CHANGE of edit control.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 Posters 0 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.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    hi all, I am count the editbox character on ON_EN_CHANGE of edit control, when count is 50 show a message box, its works fine when I type in edit box, but the problem arise,when I paste the content in editbox and the count is 50,now the messagebox is popup but at this time COPY, PASTE function not working in whole system. please help me what can I do? thank in advance.

    L N 2 Replies Last reply
    0
    • L Le rner

      hi all, I am count the editbox character on ON_EN_CHANGE of edit control, when count is 50 show a message box, its works fine when I type in edit box, but the problem arise,when I paste the content in editbox and the count is 50,now the messagebox is popup but at this time COPY, PASTE function not working in whole system. please help me what can I do? thank in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Le@rner wrote:

      the messagebox is popup but at this time COPY, PASTE function not working in whole system.

      What exactly does that mean? It's unlikely that showing a message box could disable these functions unless your code is doing something illegal.

      Use the best guess

      1 Reply Last reply
      0
      • L Le rner

        hi all, I am count the editbox character on ON_EN_CHANGE of edit control, when count is 50 show a message box, its works fine when I type in edit box, but the problem arise,when I paste the content in editbox and the count is 50,now the messagebox is popup but at this time COPY, PASTE function not working in whole system. please help me what can I do? thank in advance.

        N Offline
        N Offline
        Newbie00
        wrote on last edited by
        #3

        1 Is the problem present, if message box is still opened? 2 Or Is the problem present even after closing message box? If 1 is true and 2 not, I think that you have blocked system clipboard with your message box. You opened modal dialog (msgbox) during OnPaste msg and it cannot finish it's work untill messagebox is closed. If it cannot finish it's work, the system clipboard cannot be released. If clipboard is not released, the ctrl+c, ctrl+v doesn't work in whole system.

        L 1 Reply Last reply
        0
        • N Newbie00

          1 Is the problem present, if message box is still opened? 2 Or Is the problem present even after closing message box? If 1 is true and 2 not, I think that you have blocked system clipboard with your message box. You opened modal dialog (msgbox) during OnPaste msg and it cannot finish it's work untill messagebox is closed. If it cannot finish it's work, the system clipboard cannot be released. If clipboard is not released, the ctrl+c, ctrl+v doesn't work in whole system.

          L Offline
          L Offline
          Le rner
          wrote on last edited by
          #4

          yes option 1 occur here "the problem present, if message box is still opened?" how can I resole this, any idea for this, can I use modeless dialog for this. thanks.

          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