Im working on my first windows app, trying to recreate Notepad or something similar. I've googled and searched this forum, but havent found a function that allows you to access the parent from the child. Im sure its simple, but can anyone help?
Im working on my first windows app, trying to recreate Notepad or something similar. I've googled and searched this forum, but havent found a function that allows you to access the parent from the child. Im sure its simple, but can anyone help?
What "parent" and what "child" are you talking about?
I'm pretty sure it can be done, but there are so many things that are "parent" and "child" in some way - and you probably knew EXACTLY what you meant, but we don't.
--
Mats
My bad. I tend to abrieviate when I know what i mean. I have my main window, which is the parent. I stick an Edit window inside of it, which is the child. I pass the Edit window into one of my functions, but not the main window. In that function, I want to access the main window, so either I could get it through the Edit window (child) or I guess I could just pass it in...
Edit: forgot to mention, Im using Dev-C++ 4.9.9.2
Last edited by Aemon07; 07-25-2007 at 11:40 AM. Reason: just incase
It's pretty intuitive - GetParent(HWND child)
I knew it would be simple. I thought i tried that though. Oh well. Thanks
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill