I've made a main dialog with a control button on it
that calls a second dialog when the button is clicked.
The second dialog has a list control that is intended
to have the numbers 5 thru 49 selected. Of course
DLGEDIT leaves the values to be loaded into the list
up to code I have provide. (I haven't yet figured out
what the Lbxxxx code should look like, but I'll get
it).
The main Dialog calls the second with the following
code.
CASE %Second
SELECT CASE HIWRD(wParam)
CASE %BN_CLICKED
DialogBoxParam ghInst, BYVAL CLNG(%SecondDialog),
hDlg, CODEPTR(SecondDialog_WndProc), 0
END SELECT
Right now I'm using DLGEDIT and PowerGen to regenerate
ALL code EVERY TIME I make a change, and that is
occurring frequently since this is my first Windows
program. I've concluded that I don't want to modify
the code generated by PowerGen, other than add an
#include at the begginning for my code procedures.
If I follow that process I don't see any way to load
the values (5-49) of the list when the second dialog
is displayed.
How can I get control when the second dialog is
created and displayed. Must I insert code to
display variable information at the start of
SecondDialog_WndProc procedure? If so I have to do
that every time I run PowerGen and create new code?
Is there a simpler more automatic way to do this?
that calls a second dialog when the button is clicked.
The second dialog has a list control that is intended
to have the numbers 5 thru 49 selected. Of course
DLGEDIT leaves the values to be loaded into the list
up to code I have provide. (I haven't yet figured out
what the Lbxxxx code should look like, but I'll get
it).
The main Dialog calls the second with the following
code.
CASE %Second
SELECT CASE HIWRD(wParam)
CASE %BN_CLICKED
DialogBoxParam ghInst, BYVAL CLNG(%SecondDialog),
hDlg, CODEPTR(SecondDialog_WndProc), 0
END SELECT
Right now I'm using DLGEDIT and PowerGen to regenerate
ALL code EVERY TIME I make a change, and that is
occurring frequently since this is my first Windows
program. I've concluded that I don't want to modify
the code generated by PowerGen, other than add an
#include at the begginning for my code procedures.
If I follow that process I don't see any way to load
the values (5-49) of the list when the second dialog
is displayed.
How can I get control when the second dialog is
created and displayed. Must I insert code to
display variable information at the start of
SecondDialog_WndProc procedure? If so I have to do
that every time I run PowerGen and create new code?
Is there a simpler more automatic way to do this?
Comment