Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 MFC CWnd object pWnd->pm suggests PostMessageW
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 22 2023 :  05:21:51 AM  Show Profile  Reply with Quote
I have a MFC project.

A CWnd class has a PostMessage function.

Now assume the code

CWnd *pWnd = nullptr;
...
pWnd->pm /


Typeing this the pmthe suggestions is PostMessageW. Why The function is internally declared as PostMessage. Yes there is a define for PostMessage to PostMessageW.
I don't want to see the W.

Is there a setting?

If I write code in the _T-Notation I can use PostMessage in an Unicode and non-Unicode project.

Regards
Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jul 10 2023 :  10:38:47 AM  Show Profile  Reply with Quote
Apologies for the slow reply.

Using VS2019 and VA 2491.0 I am sitting inside a simple MFC application, and I have added this simple test code, and this is the listbox I am seeing:



This is with:

VA Options -> Enhanced Listboxes -> Source of C/C++ content: Visual Assist

zen is the art of being at one with the two'ness
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jul 11 2023 :  04:17:23 AM  Show Profile  Reply with Quote
Using VS-2022 VAX Build 2488
I see this





Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

Edited by - xMRi on Jul 11 2023 04:18:32 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jul 11 2023 :  08:06:33 AM  Show Profile  Reply with Quote
Do you have:

VA Options -> Floating Buttons and Icons -> Denote content from Visual Assist with tomato icons

On or Off?

I have just checked VS2022, and I am getting different icons when I mouse hover over the listbox, for the filter bar at the bottom of the listbox, so I am wondering if you are seeing an IDE listbox, rather than a VA listbox. That might help to explain the different listbox content we are getting.

zen is the art of being at one with the two'ness
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jul 11 2023 :  08:15:09 AM  Show Profile  Reply with Quote
On.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jul 11 2023 :  11:22:22 AM  Show Profile  Reply with Quote
Do you get the same problem in a new, default MFC solution?

If so, would you be able to send me a copy of that solution, along with your VA and IDE settings?

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

The solution is helpful since I am wondering if the SDK version you are targeting is a factor. Something has to be going on here, since this seems like a really simple test, yet we are seeing different things.

Please send me the files via email:

[email protected]

including this thread ID or URL in the description, so we can match it up.

zen is the art of being at one with the two'ness
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jul 13 2023 :  02:12:04 AM  Show Profile  Reply with Quote
I get this in every project. Even non MFC projects.

Strange inside a CWnd class typing pm it gives me PostMessage as a suggestion.
Using this->pm gives me PostMessageW as a suggestion.

You got mail.


Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jul 13 2023 :  10:03:41 AM  Show Profile  Reply with Quote
I have the settings, thank you for these. The problem starts happening when I import your IDE settings, so something in there is a factor. After importing your VA settings, I set:

VA Options -> Enhanced Listboxes -> Source of C/C++ content: Visual Assist

and this fixed the problem for me. Can you try this and see how it works for you?

zen is the art of being at one with the two'ness
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jul 13 2023 :  10:26:12 AM  Show Profile  Reply with Quote
Fixed.

Thanks!

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jul 14 2023 :  06:52:32 AM  Show Profile  Reply with Quote
Excellent news, thank you for the update. I am curious as to which IDE option is the trigger here, but not curious enough to actually "diff" the options between two systems trying to find it. I know from experience how long that can take, there are a LOT of options to check

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000