IDC_EDITn
-
visual C++6 when i write DDX_Text(pDX, IDC_EDIT10+4, VAR); where VAR is a member variable, it puts the VAR value in IDC_EDIT24 not IDC14 as i expected, and when i write: DDX_Text(pDX, IDC_EDIT5+2, VAR); it reads it as IDC_EDIT7; in the same way, it reads 4+1 = 15 !! 5+4=19; 10+7 = ?? anyone can help plZ?:laugh:
-
visual C++6 when i write DDX_Text(pDX, IDC_EDIT10+4, VAR); where VAR is a member variable, it puts the VAR value in IDC_EDIT24 not IDC14 as i expected, and when i write: DDX_Text(pDX, IDC_EDIT5+2, VAR); it reads it as IDC_EDIT7; in the same way, it reads 4+1 = 15 !! 5+4=19; 10+7 = ?? anyone can help plZ?:laugh:
What are the numeric values of
IDC_EDIT10
,IDC_EDIT24
,IDC14
,IDC_EDIT5
, andIDC_EDIT7
?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
visual C++6 when i write DDX_Text(pDX, IDC_EDIT10+4, VAR); where VAR is a member variable, it puts the VAR value in IDC_EDIT24 not IDC14 as i expected, and when i write: DDX_Text(pDX, IDC_EDIT5+2, VAR); it reads it as IDC_EDIT7; in the same way, it reads 4+1 = 15 !! 5+4=19; 10+7 = ?? anyone can help plZ?:laugh:
It looks like the controls were not added to the dialog in the same order as they are numbered. Each IDC_EDITxx is associated with a numeric value which is incremented after each assignment to prevent reuse of a number. If IDC_EDIT10 is associated with 33405, for example, the expression IDC_EDIT10+4 evaluates to 33409, which is apparently associated with the identifier IDC_EDIT24, not IDC_EDIT14. You can recreate the controls on the dialog in the correct order to fix this, or find another way to refer to specific controls. Or stick around - someone else may have a better solution.:) Will Build Nuclear Missile For Food - No Target Too Small
-
It looks like the controls were not added to the dialog in the same order as they are numbered. Each IDC_EDITxx is associated with a numeric value which is incremented after each assignment to prevent reuse of a number. If IDC_EDIT10 is associated with 33405, for example, the expression IDC_EDIT10+4 evaluates to 33409, which is apparently associated with the identifier IDC_EDIT24, not IDC_EDIT14. You can recreate the controls on the dialog in the correct order to fix this, or find another way to refer to specific controls. Or stick around - someone else may have a better solution.:) Will Build Nuclear Missile For Food - No Target Too Small
You can adjust the numbers in the Visual C++ resource editor by going to properties, then putting '=x' after the name, where x is the number you want it to have (e.g. 'IDC_EDIT10=1000', without the quotes). Stability. What an interesting concept. -- Chris Maunder
-
It looks like the controls were not added to the dialog in the same order as they are numbered. Each IDC_EDITxx is associated with a numeric value which is incremented after each assignment to prevent reuse of a number. If IDC_EDIT10 is associated with 33405, for example, the expression IDC_EDIT10+4 evaluates to 33409, which is apparently associated with the identifier IDC_EDIT24, not IDC_EDIT14. You can recreate the controls on the dialog in the correct order to fix this, or find another way to refer to specific controls. Or stick around - someone else may have a better solution.:) Will Build Nuclear Missile For Food - No Target Too Small
No better solution I believe... This one problem you need to avoid when using group radiobuttons.
MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"