equal
deleted
inserted
replaced
13 #include <dos.h> |
13 #include <dos.h> |
14 |
14 |
15 #define INCL_DOS |
15 #define INCL_DOS |
16 #define INCL_OS2MM |
16 #define INCL_OS2MM |
17 #define INCL_WIN |
17 #define INCL_WIN |
|
18 #define INCL_WINCLIPBOARD |
18 |
19 |
19 #include <os2.h> |
20 #include <os2.h> |
20 #include <os2me.h> |
21 #include <os2me.h> |
21 |
22 |
22 #if defined(WITH_SDL) |
23 #if defined(WITH_SDL) |
685 OS2MidiSetVolume, |
686 OS2MidiSetVolume, |
686 }; |
687 }; |
687 |
688 |
688 bool InsertTextBufferClipboard(Textbuf *tb) |
689 bool InsertTextBufferClipboard(Textbuf *tb) |
689 { |
690 { |
|
691 #if 0 |
|
692 HAB hab = 0; // anchor-block handle |
|
693 PSZ pszClipText, pszLocalText; |
|
694 |
|
695 if (WinOpenClipbrd(hab)) |
|
696 { |
|
697 if (pszClipText = (PSZ) WinQueryClipbrdData(hab, CF_TEXT)) |
|
698 { |
|
699 while (*pszLocalText++ = *pszClipText++); |
|
700 } |
|
701 WinCloseClipbrd(hab); |
|
702 } |
|
703 |
|
704 // text is now in pszLocalText, do something with it! |
|
705 #endif |
690 // TODO |
706 // TODO |
691 return false; |
707 return false; |
692 } |
708 } |