Solved

Very simple question

Posted on 2000-04-25
1
357 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
method notes when mouse over in eclipse 5 66
format the code in java 6 72
Fibonacci challenge 11 81
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

9 Experts available now in Live!

Get 1:1 Help Now