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

  • Home
  • SEARCH
  • 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 8589721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:07:29+00:00 2026-06-11T23:07:29+00:00

This is an old problem that I’ve never figured out – wondered if someone

  • 0

This is an old problem that I’ve never figured out – wondered if someone here might happen to know the answer off of the top of your head…

In some parts of our software (MFC/Win32/MBCS) my code will only receive

TTN_NEEDTEXTW

In other parts of our software, I’ll receive the MBCS correct message

TTN_NEEDTEXTA

It makes no sense to me.

I understand that our software can be compiled Unicode or not (we are set to use Multibyte character set). And I have the vague recollection that each window can be constructed Unicode or not, though this is a vague memory, nothing concrete.

Does anyone know why we’d be getting the wide version message some places in our code, despite being compiled as multibyte?

NOTES:

  • We’re definitely not sending this message – presumably the ToolTip control is.
  • We’re definitely only receiving the (W) message in some places, and definitely only receiving the (A) message in others.
  • I’m certain that all compilation modules use MBCS, not Unicode, and that the build targets all specify MBCS not Unicode.
  • This seems to happen only for CMainFrame hosted windows and controls. i.e. Windows outside of the main frame can use narrow versions (say in a dialog box).
  • 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-11T23:07:30+00:00Added an answer on June 11, 2026 at 11:07 pm

    The common control sends you a WM_NOTIFYFORMAT message to ask you “Would you prefer to receive MBCS notifications or Unicode notifications?” The default is to respond based on whether the window was created via CreateWindowExW or CreateWindowExA.

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

Sidebar

Related Questions

this is my age-old problem and I've never found a real solution for this
This is an age old problem - but now I'm using scriptaculous its come
This is a very old problem, but I cannot seem to get my head
I periodically get this problem where all of a sudden mako is using old
I'm trying to illustrate a doubly linked list problem. this is from an old
We have some code kicking around that uses this old internal Sun package for
I'm facing with an old problem that it made me confuse very much. So
This is an old problem I abandoned awhile ago because I could fine no
I just came across this weird problem that is happening in IE. In the
I'm quite sure this is an old problem. This is how i render my

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.