Solved

Very simple question

Posted on 2000-04-25
1
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this post we will learn different types of Android Layout and some basics of an Android App.
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, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

717 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