TranslateMessage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    TranslateMessage

    HI.

    "To retrieve character codes, an application must include the
    TranslateMessag e function in its thread message loop"

    How can i do that?

    Thanks



  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: TranslateMessag e

    David,

    What are you trying to do?

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "David" <a@a.com> wrote in message
    news:ezOL9AEaFH A.3840@tk2msftn gp13.phx.gbl...[color=blue]
    > HI.
    >
    > "To retrieve character codes, an application must include the
    > TranslateMessag e function in its thread message loop"
    >
    > How can i do that?
    >
    > Thanks
    >
    >
    >[/color]


    Comment

    • David

      #3
      Re: TranslateMessag e

      I'm handling the WM_KEYDOWN and WM_SYSKEYDOWN and i what i want is translate
      the message to a WM_CHAR or WM_DEADCHAR.
      "...The layout examines the message's virtual-key code and, if it
      corresponds to a character key, provides the character code equivalent
      (taking into account the state of the SHIFT and CAPS LOCK keys)..."
      Thanks.


      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
      message news:%23BV6x3Ea FHA.1152@tk2msf tngp13.phx.gbl. ..[color=blue]
      > David,
      >
      > What are you trying to do?
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "David" <a@a.com> wrote in message
      > news:ezOL9AEaFH A.3840@tk2msftn gp13.phx.gbl...[color=green]
      > > HI.
      > >
      > > "To retrieve character codes, an application must include the
      > > TranslateMessag e function in its thread message loop"
      > >
      > > How can i do that?
      > >
      > > Thanks
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: TranslateMessag e

        David,

        Do you want to translate it to the WM_CHAR or WM_DEADCHAR message, or do
        you want to send it back into the message pump to be sent? TranslateMessag e
        will take those messages and post the new message to the thread.

        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m

        "David" <a@a.com> wrote in message
        news:OlkOHEFaFH A.1152@tk2msftn gp13.phx.gbl...[color=blue]
        > I'm handling the WM_KEYDOWN and WM_SYSKEYDOWN and i what i want is
        > translate
        > the message to a WM_CHAR or WM_DEADCHAR.
        > "...The layout examines the message's virtual-key code and, if it
        > corresponds to a character key, provides the character code equivalent
        > (taking into account the state of the SHIFT and CAPS LOCK keys)..."
        > Thanks.
        >
        >
        > "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote
        > in
        > message news:%23BV6x3Ea FHA.1152@tk2msf tngp13.phx.gbl. ..[color=green]
        >> David,
        >>
        >> What are you trying to do?
        >>
        >> --
        >> - Nicholas Paldino [.NET/C# MVP]
        >> - mvp@spam.guard. caspershouse.co m
        >>
        >> "David" <a@a.com> wrote in message
        >> news:ezOL9AEaFH A.3840@tk2msftn gp13.phx.gbl...[color=darkred]
        >> > HI.
        >> >
        >> > "To retrieve character codes, an application must include the
        >> > TranslateMessag e function in its thread message loop"
        >> >
        >> > How can i do that?
        >> >
        >> > Thanks
        >> >
        >> >
        >> >[/color]
        >>
        >>[/color]
        >
        >[/color]


        Comment

        • David

          #5
          Re: TranslateMessag e

          Thanks for reply.

          I want get a char from a virtual-key taking into account the state of the
          SHIFT and CAPS LOKC keys, like say the description of TranslateMessag e
          function. mmm...do you understand?


          "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
          message news:%23zXl6OGa FHA.2736@TK2MSF TNGP12.phx.gbl. ..[color=blue]
          > David,
          >
          > Do you want to translate it to the WM_CHAR or WM_DEADCHAR message, or[/color]
          do[color=blue]
          > you want to send it back into the message pump to be sent?[/color]
          TranslateMessag e[color=blue]
          > will take those messages and post the new message to the thread.
          >
          > --
          > - Nicholas Paldino [.NET/C# MVP]
          > - mvp@spam.guard. caspershouse.co m
          >
          > "David" <a@a.com> wrote in message
          > news:OlkOHEFaFH A.1152@tk2msftn gp13.phx.gbl...[color=green]
          > > I'm handling the WM_KEYDOWN and WM_SYSKEYDOWN and i what i want is
          > > translate
          > > the message to a WM_CHAR or WM_DEADCHAR.
          > > "...The layout examines the message's virtual-key code and, if it
          > > corresponds to a character key, provides the character code equivalent
          > > (taking into account the state of the SHIFT and CAPS LOCK keys)..."
          > > Thanks.
          > >
          > >
          > > "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote
          > > in
          > > message news:%23BV6x3Ea FHA.1152@tk2msf tngp13.phx.gbl. ..[color=darkred]
          > >> David,
          > >>
          > >> What are you trying to do?
          > >>
          > >> --
          > >> - Nicholas Paldino [.NET/C# MVP]
          > >> - mvp@spam.guard. caspershouse.co m
          > >>
          > >> "David" <a@a.com> wrote in message
          > >> news:ezOL9AEaFH A.3840@tk2msftn gp13.phx.gbl...
          > >> > HI.
          > >> >
          > >> > "To retrieve character codes, an application must include the
          > >> > TranslateMessag e function in its thread message loop"
          > >> >
          > >> > How can i do that?
          > >> >
          > >> > Thanks
          > >> >
          > >> >
          > >> >
          > >>
          > >>[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...