Public Methods |
| Clipboard () |
virtual | ~Clipboard () |
void | freeGlobalMem () |
| frees up the Global memory allocated for use of the clipboard.
|
void | shiftUp () |
| emulates the shift-key going up.
|
void | paste () |
| emulates a CTRL-V sequence to enact a Paste.
|
void | copyToClipboard (const HWND& hwndOwner, PWCHAR pchar) |
| copies the appropiate format to the clipboard.
|
void | setFormats (bool _Unicode, bool _Rtf, bool _Html, int fontsize) |
| sets information about which format to use & the appropiate font size.
|
Private Types |
enum | {
LOTSOFTEXT = 524
} |
enum | {
MAX_SIZE = 524
} |
Private Methods |
void | my_strcpy (char* ptr, PTCHAR text, UINT size) |
| utility functions copies from one buffer to the other base on size, NOT null-termination.
|
void | makeHtml (PWCHAR pchar, PTCHAR text, const int fs) |
| formulates HTML format for the clipboard. More...
|
void | makeRtf (PWCHAR pchar, PTCHAR text, const int fs) |
| formulates RTF format for the clipboard.
|
const UINT | makeUnicode (PWCHAR pchar, PTCHAR text) |
| formulates Unicode format for the clipboard. More...
|
void | getFontName (string& fName) |
| retrieves the current default font name from the registery.
|
Private Attributes |
HGLOBAL | hHtml |
| handles to global memory for each of the 3 formats.
|
HGLOBAL | hRtf |
HGLOBAL | hUnicode |
bool | Unicode |
| which clipboard format to use.
|
bool | Rtf |
bool | Html |
int | fs |
| Font size; this information comes from the user interface window.
|