Solved

Very simple question

Posted on 2000-04-25
1
371 Views
Last Modified: 2013-11-20
I want my MDI application to be notified when there is a change in clipboard, I can make it to work in a dialog by using
SetClipboardViewer() in the OnInitDialog() and map ON_MESSAGE(WM_DRAWCLIPBOARD,MyFunction)

void MyFunction()
{
 do what ever I want to do when there is a change in clipboard
}

Can anyone tell me how to do it in MDI ??
Thanks guys

0
Comment
Question by:Iswandi
1 Comment
 
LVL 1

Accepted Solution

by:
hiap_ho earned 10 total points
ID: 2746915
Let me answer this simple question...
you are approaching this question correctly, you should call WM_DRAWCLIPBOARD instead of ON_MESSAGE
Use OnDrawClipboard function, it's provided by CWnd class.

Call the SetClipboardViewer in OnCreate function... this should settle it...
if you need more information don't hesitate to contact me...hiap_ho@hotmail.com

regards,

Hiap Ho
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 94
Named range not carried over 10 62
Process filename extension 3 172
NotAlone Challenge 20 80
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now