| |

VerySource

 Forgot password?
 Register
Search
Author: 9cshit

Novice question: Why the listbox or button above can't be seen after the picture is used as the background, just click

[Copy link]

2

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-1-29 17:36:01
| Show all posts
Boss, I'll give you the code. Can you help me to see if it's okay, as I said, still not
Reply

Use magic Report

0

Threads

10

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-30 10:54:01
| Show all posts
Paint the background in OnEraseBkgnd
Reply

Use magic Report

2

Threads

19

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-30 23:09:02
| Show all posts
Can be handled like this (related to the order of drawing controls)
The picture control should be the first object inserted after the dialog resource is inserted,
In this way, the other added controls will be on this picture control when running and displaying.
Don't believe it. You can also call it in related classes after this form is displayed.
[Show displayed controls] .Invalidate ();

If it is a dynamically created control, it is also related to the creation order, that is, first created first
If you want to display the order of controls in the program,
First use the control object-> Invalidate ();
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