Accessing an edit box from multiple windows????
-
Is it possible to place an Edit Box on a "main window" and access it from a child window without going through all kinds of hoops????? Thanks in advance Pierre
pblais wrote:
Is it possible to place an Edit Box on a "main window" and access it from a child window without going through all kinds of hoops?????
do you mean hope?! :-D Never heard about Window handles (or CEdit pointers?)? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
pblais wrote:
Is it possible to place an Edit Box on a "main window" and access it from a child window without going through all kinds of hoops?????
do you mean hope?! :-D Never heard about Window handles (or CEdit pointers?)? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
nope.... I really meant "hoops" I am fairly new to this and was hoping for an easy way to do this Thanks
It's not difficult: Have a look at
GetDlgItem
, either the MFC flavour or the WINAPI one, depending upon your tastes. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
nope.... I really meant "hoops" I am fairly new to this and was hoping for an easy way to do this Thanks
pblais wrote:
and was hoping for an easy way to do this
Well the "easy" way is to hire an experienced skilled software developer. You know... someone that has spent years of their life studying the vast expanse of the software development world and therefore knows and understands the fundamental, complex and detailed aspects of it. or you could get the book "Learn C++ in 21 days"
-
Is it possible to place an Edit Box on a "main window" and access it from a child window without going through all kinds of hoops????? Thanks in advance Pierre
If you have a handle to main window,yes.
WhiteSky
-
If you have a handle to main window,yes.
WhiteSky
-
It's not difficult: Have a look at
GetDlgItem
, either the MFC flavour or the WINAPI one, depending upon your tastes. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
pblais wrote:
and was hoping for an easy way to do this
Well the "easy" way is to hire an experienced skilled software developer. You know... someone that has spent years of their life studying the vast expanse of the software development world and therefore knows and understands the fundamental, complex and detailed aspects of it. or you could get the book "Learn C++ in 21 days"
led mike wrote:
Well the "easy" way is to hire an experienced skilled software developer. You know... someone that has spent years of their life studying the vast expanse of the software development world and therefore knows and understands the fundamental, complex and detailed aspects of it. or you could get the book "Learn C++ in 21 days"
I forgot to mention that I have been successfully writing and testing MFC Dialog type applications for quite a few years now, many with child windows. I have never had a reason for a child window to access any controls from any other windows so it never was an issue. Recently, that situation presented itself. To save time exploring how to do this, I posted here. My mother always said "if you can't say something nice, don't say anything at all". So please keep your condescending attitude to yourself Mike:mad:
-
You're welcome.:-D
WhiteSky
-
led mike wrote:
Well the "easy" way is to hire an experienced skilled software developer. You know... someone that has spent years of their life studying the vast expanse of the software development world and therefore knows and understands the fundamental, complex and detailed aspects of it. or you could get the book "Learn C++ in 21 days"
I forgot to mention that I have been successfully writing and testing MFC Dialog type applications for quite a few years now, many with child windows. I have never had a reason for a child window to access any controls from any other windows so it never was an issue. Recently, that situation presented itself. To save time exploring how to do this, I posted here. My mother always said "if you can't say something nice, don't say anything at all". So please keep your condescending attitude to yourself Mike:mad:
pblais wrote:
I have been successfully writing and testing MFC Dialog type applications for quite a few years now
I'm impressed.... no really I am
pblais wrote:
I have never had a reason for a child window to access any controls from any other windows
Yeah, attitude aside, you don't want to. See the Mode-View-Controller Design Pattern[^] I figured, just because your mad, that's no excuse to develop lousy software.