Enhanced Metafile Demo Code
Copy EMF windows metafile data to clipboard using Win32++
Brought to you by:
thorsenrune
File | Date | Author | Commit |
---|---|---|---|
ProjectFiles | 2015-01-12 |
![]() |
[616219] initial commit |
src | 2015-01-12 |
![]() |
[616219] initial commit |
How to use.doc | 2015-01-12 |
![]() |
[616219] initial commit |
Readme.txt | 2015-01-12 |
![]() |
[616219] initial commit |
Copying EMF windows metafile to clipboard using Win32++ This is a modification of the scribble shipped with the Win32++ project http://sourceforge.net/projects/win32-framework/ It shows a method of copying a simple drawing to the clipboard as a WMF/EMF that can be pasted into a MS office application. Below you find the original readme of the scribble project Scribble Example ================ This project demonstrates how to use messages from the mouse to draw on a device context. This provides a convenient way to demonstrate how process window messages in WndProc. When the user draws on the window with the mouse, the lines drawn are saved in a vector. Information stored in the vector is used to repaint the screen as required. This information can also be saved to and loaded from a file. The scribble example is also the final product of the set of tutorials provided with Win32++. Features demonstrated in this example ===================================== * Use of CFrame to display the window frame * Toolbar configuration * Enabling/Disabling various frame features in OnCreate, namely: - show/hide toolbar and menu status in the status bar. - show/hide indicators in the status bar. - Use/don't use a rebar in the frame. - Use/don't use themes. - Use/don't use a toolbar in the frame. * Setting the view window of the frame. * Responding to toolbar and menu commands in OnCommand * Responding to notifications in OnNotify. * Capturing mouse input. * Using a vector to store data. * Loading and saving data to a file. * Printing the content of a window. * Responding to frame window messages in CFrame::WndProc * Responding to view window messages in CView::WndProc * Using the TRACE command to output debug text. * Saving the frame settings in the registry. * Implementing a Most Recently Used (MRU) list in the file menu. * Using the CDC class to work with device contexts. * Using double buffering to speed up drawing to a device context.