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?
Printable View
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
It's pretty intuitive - GetParent(HWND child)
I knew it would be simple. I thought i tried that though. Oh well. Thanks