MFC中观察者模式实现:跨窗口消息传递与订阅

在MFC框架中,观察者模式通过消息监听来实现。监听者可以选择同步或异步地接收消息,并指定其监听的消息类型和发送者。发送者无需关心具体监听者的存在。

rar
TestNotify.rar 预估大小:35个文件
folder
TestNotify 文件夹
file
TestNotify.suo 43KB
file
TestNotify.ncb 16.03MB
folder
debug 文件夹
file
TestNotify.sln 895B
folder
TestNotify 文件夹
file
stdafx.cpp 141B
folder
Release 文件夹
folder
res 文件夹
file
TestNotify.rc2 366B
file
TestNotify.ico 21KB
file
INotify.h 362B
file
stdafx.h 2KB
file
INotifyLisenter.cpp 238B
file
TestLisenter.cpp 484B
file
TestNotify.cpp 2KB
file
TestLisenter.h 447B
file
TestNotify.aps 59KB
file
TestBase.h 181B
file
INotifyMSG.cpp 314B
file
TestNotify.h 465B
file
Dialog3.cpp 792B
file
TestBase.cpp 256B
file
NotifyBase.h 1KB
file
TestNotify.vcproj.WORK33067-1.dy.user 1KB
file
TestNotifyDlg.h 1KB
file
INotifyLisenter.h 243B
file
resource.h 1KB
file
Dialog3.h 433B
file
LisenterDialo1.h 889B
file
LisenterDialo2.h 867B
file
INotifyMSG.h 582B
file
LisenterDialo1.cpp 3KB
file
TestNotify.rc 7KB
file
NotifyBase.cpp 7KB
folder
Debug 文件夹
file
LisenterDialo2.cpp 3KB
file
TestNotify.vcproj 7KB
file
INotify.cpp 108B
file
TestNotifyDlg.cpp 5KB
file
ReadMe.txt 3KB
folder
release 文件夹
rar 文件大小:3.21MB