Author |
Topic ![Next Topic Next Topic](icon_go_right.png) |
|
xMRi
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
Germany
315 Posts |
Posted - Jun 22 2023 : 05:21:51 AM
|
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
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jul 10 2023 : 10:38:47 AM
|
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:
![](https://forums.wholetomato.com/forum/uploaded/feline/2023710103823_mfc_postmessage.png)
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 Go to Top of Page](icon_go_up.png) |
|
xMRi
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
Germany
315 Posts |
Posted - Jul 11 2023 : 04:17:23 AM
|
Using VS-2022 VAX Build 2488 I see this
![](https://forums.wholetomato.com/forum/uploaded/xMRi/202371141826_Screenshot 2023-07-11 101529.png)
|
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 Go to Top of Page](icon_go_up.png) |
|
feline
Whole Tomato Software
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jul 11 2023 : 08:06:33 AM
|
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 Go to Top of Page](icon_go_up.png) |
|
xMRi
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
Germany
315 Posts |
Posted - Jul 11 2023 : 08:15:09 AM
|
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 Go to Top of Page](icon_go_up.png) |
|
feline
Whole Tomato Software
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jul 11 2023 : 11:22:22 AM
|
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 Go to Top of Page](icon_go_up.png) |
|
xMRi
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
Germany
315 Posts |
Posted - Jul 13 2023 : 02:12:04 AM
|
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. ![](icon_smile_question.png)
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 Go to Top of Page](icon_go_up.png) |
|
feline
Whole Tomato Software
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jul 13 2023 : 10:03:41 AM
|
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 Go to Top of Page](icon_go_up.png) |
|
xMRi
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
Germany
315 Posts |
Posted - Jul 13 2023 : 10:26:12 AM
|
Fixed.
Thanks! ![](icon_smile.gif) |
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 Go to Top of Page](icon_go_up.png) |
|
feline
Whole Tomato Software
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jul 14 2023 : 06:52:32 AM
|
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 ![](icon_smile.gif) |
zen is the art of being at one with the two'ness |
![Go to Top of Page Go to Top of Page](icon_go_up.png) |
|
|
Topic ![Next Topic Next Topic](icon_go_right.png) |
|