opoveschenie processa o izmenenii soderzhimogo bufera obmena
Vozmozhno li sdelat takoe v svoem okonnom prolizhenii ?
Znau, chto eto mozhno delat, poskolku v tom-zhe Microsoft Word podobnaya funkcionalnost est.
No kak eto realizovano ?
SetWindowsHook ? podobnogo tipa hook-ov neznau.
Ili mozhet nuzhno tolko ustanovit obrabotchiki kakix-libo okonnoix soobscheniy ?
Kakix imenno, esli mne nuzhno informirovat pilozhenie o izmenenii bufera obmena v predelax sistemi, a ne tolko svoego okna.
Собственно, вот:
bolshoe sps.
neznal ob etom.
No eto tolko dlya OC Vista,7.
A esli ya ispolzuu programmu na XP, to eto nesrabotaet.
Xotya v tom-zhe Offise XP eto vipolnyaetsya bez problem v luboy OC.
Kak eto sdelano dlya Office ? Znaet kto mozhet ?
Для XP нужно создавать Clipboard Viewer Window: Monitoring Clipboard Contents.
Соответственно, ваш путь должен быть следующий:
[QUOTE=MSDN]
• Add the window to the clipboard viewer chain.
• Process the WM_CHANGECBCHAIN message.
• Process the WM_DRAWCLIPBOARD message.
• Remove the window from the clipboard viewer chain before it is destroyed.
[/QUOTE]
bolshoe sps N2 )