I'm developing a program that allows you to open more than one window, it's basically a text editor, with multiple windows, within one main window. I'm trying to get the handle of the last window the user had selected, but it's prooving more difficult than first imagined.
I thoguht i would be able to just store the handle in a global variable each time the window proecudre for the sub windows is called, and use this when i need it. But it doesn't seem to work, it just gives the handle for the last window the user opened, not the last one they had selected.
Does anyone have any ideas?
Thanks