Guskz,
Post by Guskz KzI did not do any of the above, it is an "alert type" dialog
box created automatically in the Resource section of
Microsoft's Visual Studio
That means I cannot help you further as I'm not a Visual Studio user myself,
and have no idea how the above is implemented. I'm an direct API kind of
guy, using as little language-specific wrappers as possible.
But at least now anyone reading your question will probably have all the
info he/she needs. :-)
Regards,
Rudy Wieser
Post by Guskz KzGuskz,
Post by Guskz KzGreat it works, thanks!
You tried both, and got both to work ? Thats good to hear.
Post by Guskz KzI would appreciate if anyone also knows the answer to my second post?
You mean your first (by 5 minutes) ? :-)
Impossible to answer I'm afraid, as it lacks a bit of info. Like is the
created dialog modal, or non-modal. And what functions are you using to
create your dialog.
It is a modal "alert type" dialog box created in the resource section of
visual c++ (visual studio).
Post by Guskz KzIn the first case you would need to supply the data with the creating of the
dialog (DialogBoxParam). In the latter case you could do the same
(CreateDialogParam), but also wait until the (CreateDialog) function returns
(with the Window handle) and use that like you use it to access any control.
I did not do any of the above, it is an "alert type" dialog box created
automatically in the Resource section of Microsoft's Visual Studio. So you
click on the properties of that dialog box and it gives you and IDD_DIALOG
inside. Then I created a static text automatically inside this dialog box
from the Resource section of Visual Studio and its property automatically
sets it as IDC_STATIC.
Then for example I try to pass "hello" in the program to this variable by
using:
SetDlgItemText(IDC_STATIC, "hello");
And nothing happens....but if instead I create a static text in the regular
window of the program (instead of the newly opened dialog box) the words
"hello" do appear in the window.
So how can I paste "hello" in the newly opened dialog box in front of the
program's regular window instead?
Post by Guskz Kz... but to be honest, I'm not even sure if I understood the question right.
It reads like that "new dialog box" is created from by an already existing
one, but I could be wrong, and that "new dialog box" is a stand-alone one
(the start of a new app), in which case I really do not understand what you
mean.
Regards,
Rudy Wieser