| |

VerySource

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

How to write a function to control the property page switching?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 15:10:01
| Show all posts |Read mode
How to write a function to control the switching of the property page, hurry !!!
Reply

Use magic Report

5

Threads

23

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-4 16:57:01
| Show all posts
m_PageA.ShowWindow (SW_HIDE);
m_PageB.ShowWindow (SW_HIDE);
m_PageC.ShowWindow (SW_HIDE);
m_PageD.ShowWindow (SW_HIDE);

switch (m_Tab.GetCurSel ())
{
case 0:
m_PageA.ShowWindow (SW_SHOW);
break;
case 1:
m_PageB.ShowWindow (SW_SHOW);
break;
case 2:
m_PageC.ShowWindow (SW_SHOW);
break;
case 3:
m_PageD.ShowWindow (SW_SHOW);
break;
}
Reply

Use magic Report

0

Threads

18

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-8-3 09:30:01
| Show all posts
Learn.
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-8-21 09:15:01
| Show all posts
m_sheet.SetCurSel(0);
0 represents the property page you want
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