Tuesday, July 03, 2007 8:27 AM
Is there any way to get current window handle? I am writing a MMC 3.0 application and I require handle of main window, so that I can send a message from child threads to main window for refreshing.
Expecting a good answer :-)
Tuesday, July 03, 2007 8:59 AM
Depending on what you are trying to do, 'current window' could mean you have to use GetTopWindow or GetForegroundWindow.
But if this answer is not good enough, you are of course free to use google yourself. It's really not that hard.
Monday, November 02, 2009 12:39 PMBut, this will give you the handle of window which is in active right now. It won't give the widow within which context the code has called to get the handle. Is there anyway to do so?
Monday, November 02, 2009 12:53 PMGetActiveWindow()
Monday, January 18, 2010 6:35 PMThanks Belloc,Sachin Pawar,Bruno van Dooren.This post was what i need.