Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8246015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:22:14+00:00 2026-06-07T22:22:14+00:00

Any pointers on how accented characters are implemented in Windows would be helpful. Goal

  • 0

Any pointers on how accented characters are implemented in Windows would be helpful.

Goal – Ability to add accented characters(áéíóú) using keystrokes like ctrl + ‘ followed by a vowel and all other combinations that work on standard applications like MS Word, Text pad etc.

My Findings till date –
Everywhere I could read documentation/blogs/forums related to WM_DEADCHAR message.What I understand is :
::TranslateMessage translates WM_KEYUP messages corresponding to dead keys into WM_DEADCHAR messages, and it translates WM_SYSKEYUP messages generated by dead keys into WM_SYSDEADCHAR messages. Windows provides the logic that combines these messages with character messages to produce accented characters, so dead-key messages are usually passed on for default processing.

I added this message to my CWnd derived class’s message map but OnDeadChar() never gets called. Additionally I have found out using SPY++ that even in MSWord,Textpad etc where accented characters could be added with combination of these keystrokes, WM_DEADCHAR message is never dispatched.
So, Does this mean that WM_DEADCHAR is actually not the way to address this issue?

Please provide any sample code/steps/mechanism to implement accented characters.

Thanks in advance!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:22:15+00:00Added an answer on June 7, 2026 at 10:22 pm

    This is all dependent on the keyboard layout you are using. Certain keyboard layouts have dead keys which basically allow for key combinations for producing more characters.

    For example my ` key does nothing by itself, but pressing ` then a produces à.

    In terms of allowing users to input accented characters, it’s really up to them to install a keyboard layout which allows for it. Your app does not need to handle WM_DEADCHAR; you can just handle WM_CHAR.

    In terms of supporting accented characters internally in your app, just make sure you’re using the Unicode character set and types. For example wchar_t / WCHAR, and not char.

    For what it’s worth, I believe I had the same goal as you at some point. I created an app that basically simulates dead keys and would produce accented characters using keyboard hooks. The advantage is that you get the accented char functionality without installing a keyboard layout.

    The disadvantages are more numerous though. There’s no point re-invent this wheel. Keyboard layouts are surprisingly powerful, and all these issues with inputting characters have been solved already. You will have a very hard time translating your own messages to generate different characters. Different apps have different requirements in this regard, and in the end you will need to completely simulate keystrokes, to the point of generating keyboard state structures and handling every keyboard / char / input message. So as you are developing this, you’ll notice that it works fine for Notepad, but doesn’t work for Winword. Then you fix for winword, and then discover that it doesn’t work for Qt apps. I would definitely suggest using keyboard layouts.

    But maybe this is not what you’re trying to do; in that case ignore what I said 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to postgreSQL, so would really appreciate any pointers from the community. I
I am using boost::any to store pointers and was wondering if there was a
Any pointers on how would I create one of those (usually yellow) popup animated
I am having issues figuring out if this is possible. Any pointers would be
Trying to replicate the following query using Zend_Db_Select . Any pointers? SELECT compounds.id as
Any pointers, advice on implementing a REST API on App Engine with Python? Using
Looking for any pointers really. The functionality I'm after Basically I'd like to have
I'm currently getting a very wierd SIGSEGV (Segmentation fault), not using any pointers that
Would anyone know any pointers to information about multicore programming in C? I apologize
Any pointers for the right direction would be gratefully received, I have a NSDictionary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.