当前位置:网站首页>Mfc a dialog calls B dialog function and passes parameters
Mfc a dialog calls B dialog function and passes parameters
2022-07-02 14:55:00 【sam-zy】
A.cpp
void A::OnBnClickedButton1()
{
// A dialog class :Copen.cpp
B* m_B= (B*)GetParent();
m_B->TcpB(_T("A window "), _T(" call B window "));
}
B.h
public
void B::TcpB(CString Name, CString Data)
B.cpp
void B::TcpB(CString Name, CString Data)
{
if (MessageBox(Data, Name, MB_YESNO | MB_ICONWARNING) == IDNO)
return;
}
边栏推荐
- Makefile separates file names and suffixes
- Wechat applet uses towxml to display formula
- obsidian安装第三方插件——无法加载插件
- Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
- MFC 控制台打印,弹出对话框
- Why can't browsers read JSX?
- 871. Minimum refueling times: simple priority queue (heap) greedy question
- Fabric.js 缩放画布
- Xilinx Vivado set *.svh as SystemVerilog Header
- YoloV6训练:训练自己数据集遇到的各种问题
猜你喜欢
随机推荐
富文本编辑器添加矢量公式(MathType for TinyMCE ,可视化添加)
关于网页中的文本选择以及统计选中文本长度
C语言习题---(数组)
Add vector formula in rich text editor (MathType for TinyMCE, visual addition)
Find the maximum inscribed circle of the contour
3. Function pointers and pointer functions
MQ教程 | Exchange(交换机)
Xilinx Vivado set *. svh as SystemVerilog Header
【NOI模拟赛】刮痧(动态规划)
CTO如何帮助业务?
mathML转latex
Pychart connects to the remote server
taobao. logistics. dummy. Send (no logistics delivery processing) interface, Taobao store delivery API interface, Taobao order delivery interface, Taobao R2 interface, Taobao oau2.0 interface
taobao. trade. memo. Add (add remarks to a transaction) interface, Taobao store flag insertion interface, Taobao order flag insertion API interface, oauth2.0 interface
Socket and socket address
Obsidian installs third-party plug-ins - unable to load plug-ins
ONNX+TensorRT:将预处理操作写入ONNX并完成TRT部署
记一次报错解决经历依赖重复
Simple verification code generator for 51 single chip microcomputer experiment
How does CTO help the business?