Click to open or copy the files for the ClipText sample.
This program demonstrates the use of the Edit menu to copy and paste text to and from the clipboard. Try using the Copy command to move this text to the clipboard, and the Paste command to replace this text with data from another application. You might want to try running Notepad and Clipboard alongside this application so that you can watch the data exchanges take place.
Function | Description |
WinMain | Calls initialization function, processes message loop. |
InitApplication | Initializes window data and registers window. |
InitInstance | Saves instance handle and creates main window. |
MainWndProc | Processes messages. |
About | Processes messages for About dialog box. |
OutOfMemory | Displays warning message. |
This sample uses the following keywords:
closeclipboard; createwindow; defwindowproc; destroywindow; dialogbox; dispatchmessage; emptyclipboard; enablemenuitem; enddialog; getclipboarddata; getfocus; getmenu; getmessage; getstockobject; globalalloc; globalfree; globallock; globalsize; globalunlock; initapplication; initinstance; invalidaterect; isclipboardformatavailable; loadaccelerators; loadcursor; loadicon; mainwndproc; messagebox; openclipboard; outofmemory; postquitmessage; registerclass; setclipboarddata; showwindow; strcpy; switch; translateaccelerator; translatemessage; unreferenced_parameter; updatewindow; winmain