16,016,140 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13916604 (Top 8 by date)
Member 13916604
27-Aug-18 12:44pm
View
To keep you in touch, I implemented OnActivateView in my view and sent a message to the mainframe.
I don't know if it is the smartest and cleanest solution, but... it works :)
Member 13916604
27-Aug-18 5:38am
View
Thank you Richard for your answer.
In this case, do you know a different way to be inform about view change of my splitter window?
Member 13916604
25-Aug-18 6:29am
View
Job is done in this way ^^
Thank you for your support and explanations
Member 13916604
9-Aug-18 7:33am
View
Jochen,
Your first proposal is what I've done, but I would like to keep doc functions private.
I am trying your second proposal which is exactly what I am looking for.
If my handler function is in CMainFrame it works, but not in doc.
Here is my doc's message map:
ON_MESSAGE(WM_MSG, OnMyMsg)
But, I have the following cast issue:
error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CMyDoc::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)'
I tried to force cast using reinterpret_cast<LRESULT (CWnd::*)(WPARAM, LPARAM)>(); it compiles, but my function is not called.
Perhaps, I missed something...
Member 13916604
8-Aug-18 4:58am
View
Sorry, I read your answer a little fast and didn't catch your point
Member 13916604
8-Aug-18 4:56am
View
To keep you in touch; I am implementing features in doc and view. It's quite done, but, to have a clean design I am wondering if it is possible to send a message from view to doc (with parameters)? As it seems that WM_MESSAGE are reserved to view and wnd.
Member 13916604
6-Aug-18 7:18am
View
In fact CEdit is neither a member of CEditView nor having inheritance relationship. That's why it is tricky...
Member 13916604
6-Aug-18 7:16am
View
Thank you, I will try by this way
Show More