Click to See Complete Forum and Search --> : How do I get a Window Handle


John Hagen
August 17th, 2001, 08:54 AM
I am trying to get the the handle for the present window, from inside the Serialize function within the Doc class. This is what i am using:CWnd* m_pMainWnd = GetParent();

but it doesn't work. I'm at a loss as to what I should use. Any help would be greatly appreciated!


Still trying to get past the learning curve on this end...

John Hagen

Captain Nuss
August 17th, 2001, 08:59 AM
Uhm... Wouldn't it make more sense to ask your question in the C++ DB?

----------------
You can contact me directly at Christoph.Schulze@gmx.co.uk
Hey, and... don't forget your parsley cause you can't eat your dog after having stolen him from some animal shelter and having drowned him in the Atlantic Ocean.

John Hagen
August 17th, 2001, 09:01 AM
Yep, my mistake. Selected the wrong discussion group. Color me embarrassed. Sorry...

Still trying to get past the learning curve on this end...

John Hagen