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. How to receive a dead character message?

How to receive a dead character message?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
7 Posts 4 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.
  • U Offline
    U Offline
    udiraz
    wrote on last edited by
    #1

    Hi, I am trying to catch a message when a dead character is pressed: I created a single document project and tried the following: 1. Add ON_WM_DEADCHAR() and a corresponding OnDeadChar() method 2. Implemented WindowProc() and search for WM_DEADCHAR message. To make sure that keyboard message are catched, I catch WM_KEYDOWN as well and it is works fine. Does someone have a clue how to get a message when a dead key is pressed? Thanks, Udi Raz

    T S 2 Replies Last reply
    0
    • U udiraz

      Hi, I am trying to catch a message when a dead character is pressed: I created a single document project and tried the following: 1. Add ON_WM_DEADCHAR() and a corresponding OnDeadChar() method 2. Implemented WindowProc() and search for WM_DEADCHAR message. To make sure that keyboard message are catched, I catch WM_KEYDOWN as well and it is works fine. Does someone have a clue how to get a message when a dead key is pressed? Thanks, Udi Raz

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      udiraz wrote:

      a dead character

      udiraz wrote:

      a dead key

      what on earth is that ??


      [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

      N S 2 Replies Last reply
      0
      • T toxcct

        udiraz wrote:

        a dead character

        udiraz wrote:

        a dead key

        what on earth is that ??


        [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

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

        Maybe it's not on earth but on the Mars ?? :~

        1 Reply Last reply
        0
        • T toxcct

          udiraz wrote:

          a dead character

          udiraz wrote:

          a dead key

          what on earth is that ??


          [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          toxcct wrote:

          what on earth is that

          CWnd::OnDeadChar[^]

          MSDN:

          The framework calls this member function when the OnKeyUp member function and the OnKeyDown member functions are called

          Looks like its called when there are contradictory calls in the queue. :~


          I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

          T 1 Reply Last reply
          0
          • U udiraz

            Hi, I am trying to catch a message when a dead character is pressed: I created a single document project and tried the following: 1. Add ON_WM_DEADCHAR() and a corresponding OnDeadChar() method 2. Implemented WindowProc() and search for WM_DEADCHAR message. To make sure that keyboard message are catched, I catch WM_KEYDOWN as well and it is works fine. Does someone have a clue how to get a message when a dead key is pressed? Thanks, Udi Raz

            S Offline
            S Offline
            S Douglas
            wrote on last edited by
            #5

            udiraz wrote:

            Does someone have a clue how to get a message when a dead key is pressed?

            I wouldn't worry about it to much. CWnd::OnDeadChar[^]

            MSDN:

            The framework calls this member function when the OnKeyUp member function and the OnKeyDown member functions are called

            Looks like its called when there are contradictory calls in the queue. :~


            I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

            1 Reply Last reply
            0
            • S S Douglas

              toxcct wrote:

              what on earth is that

              CWnd::OnDeadChar[^]

              MSDN:

              The framework calls this member function when the OnKeyUp member function and the OnKeyDown member functions are called

              Looks like its called when there are contradictory calls in the queue. :~


              I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              oh, I never heard of this one... thanks for the link !


              [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

              S 1 Reply Last reply
              0
              • T toxcct

                oh, I never heard of this one... thanks for the link !


                [VisualCalc][Flags Beginner's Guide] | [Forums Guidelines][My Best Advice]

                S Offline
                S Offline
                S Douglas
                wrote on last edited by
                #7

                toxcct wrote:

                I never heard of this one

                Yea, ditto, I had to look it up. Not to sure why the OP is worried about it, but whatever, learn something new every day. :)


                I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

                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