| |

VerySource

 Forgot password?
 Register
Search
View: 653|Reply: 3

After the SPIN and EDIT are bound, how can I get the value in EDIT?

[Copy link]

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-4 15:30:01
| Show all posts |Read mode
If EDIT can only input INT, how can he not input strings?
Reply

Use magic Report

0

Threads

17

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-22 16:30:02
| Show all posts
SendDlgItemMessage (hDlg, IDC_SPINZXSIZE, UDM_SETBUDDY, (WPARAM) GetDlgItem (hDlg, IDC_ZXSIZE), 0L);
SendDlgItemMessage (hDlg, IDC_SPINZXSIZE, UDM_SETRANGE, 0L, MAKELONG (2400,100));
iZXSize = GetDlgItemInt (hDlg, IDC_ZXSIZE, NULL, FALSE);
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-4-1 14:00:02
| Show all posts
When your EDIT is associated with an int variable
Reply

Use magic Report

0

Threads

17

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-4-1 22:45:01
| Show all posts
If you are using MFC, you can use DDX to associate EDIT with a variable. After the association,
The value of the variable is the EDIT value
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list