How to use PostMessage from standard c++ function to MFC dialog?

gsegria 1 Reputation point
2020-10-30T02:00:58.173+00:00

I created aaa.cpp and aaaDlg.cpp and I want to update dialog GUI from aaa function to Dialog function.

How to use PostMessage from standard c++ function to MFC dialog?
Any examples is better.

============================ Standard c++
aaa.cpp
void AAA::function()
{
PostMessage (........)
}

//===========================MFC
aaaDlg.cpp

include "stdafx.h"

void GetAAADlg::UpdateUI()
{

}

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.