Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Very simple question

Posted on 2000-04-25
1
Medium Priority
?
427 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 40 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…
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 you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

604 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