> Thanks for not on WM_SETTEXT/WM_GETTEXT. But here's another thing: > WM_GETFONT works, or appears to, across process boundaries. Which is kinda > weird, cause it's returning a handle, and I would have thought a handle to an > object would be meaninless outside the context in which font was created. >
Yes, many gdi handles seem to be system global. Icons are I believe -- going from memory, the powerpro tray icon stuff relies on hooking explorer and passing icon handles to a separate process to be duplicated (for safety). And win.addmenurow grabs the menu bar handle of another window, adds a row, and redraws the menu bar, all from the powerpro process (which really surprised me when I was shown how it was implemented - I had assumed some kind of trickiness was needed).
