?
Solved

Very simple question

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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

800 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