| |

VerySource

 Forgot password?
 Register
Search
View: 1457|Reply: 12

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

Post time: 2020-1-7 00:30:01
| Show all posts |Read mode
The novice asks: After using the picture as the background, the listbox or button above can not be seen, and can be displayed by clicking it. The other windows cannot be seen when they are covered again. What is the problem and how to solve it!
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-7 12:42:01
| Show all posts
I also encountered a similar problem, I don't know how to solve it, please enlighten me !!!!
Reply

Use magic Report

2

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-1-19 15:09:02
| Show all posts
Go up, why are there no masters?
Reply

Use magic Report

1

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-19 17:54:01
| Show all posts
How do you do it, how do you paste the background image, can you paste the code?
Reply

Use magic Report

2

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-1-20 17:27:01
| Show all posts
I added a picture control in VC
But don't know how to set it to the lowest level
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-20 18:00:02
| Show all posts
HBRUSH CAaaDlg :: OnCtlColor (CDC * pDC, CWnd * pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog :: OnCtlColor (pDC, pWnd, nCtlColor);
Ranch
// Set transparent background mode
pDC-> SetBkMode (TRANSPARENT);
// Set the background brush to empty
return (HBRUSH) :: GetStockObject (HOLLOW_BRUSH);
}
Reply

Use magic Report

2

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-1-21 05:45:01
| Show all posts
Can you explain
Reply

Use magic Report

1

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-24 20:27:01
| Show all posts
Set the tab order of the image control to the smallest, that is, the first one, which is at the lowest level.
Reply

Use magic Report

2

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-1-27 20:09:01
| Show all posts
No good still the same
Reply

Use magic Report

1

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-28 17:36:02
| Show all posts
BOOL CAaaDlg :: OnInitDialog ()
{
CDialog :: OnInitDialog ();
// Load the bitmap
m_Back.LoadBitmap (IDB_BITMAP1);
Ranch
return TRUE; // return TRUE unless you set the focus to a control
}

BOOL CAaaDlg :: OnEraseBkgnd (CDC * pDC)
{
CDC dc;
dc.CreateCompatibleDC (pDC);
dc.SelectObject (&m_Back);

// Get the BITMAP object
BITMAP hb;
m_Back.GetBitmap (&hb);

// Get window size
CRect rt;
GetClientRect (&rt);
// Display bitmap
pDC-> StretchBlt (0, 0, rt.Width (), rt.Height (),
&dc, 0, 0, hb.bmWidth, hb.bmHeight, SRCCOPY);

return TRUE;
// return CDialog :: OnEraseBkgnd (pDC);
}

HBRUSH CAaaDlg :: OnCtlColor (CDC * pDC, CWnd * pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog :: OnCtlColor (pDC, pWnd, nCtlColor);
Ranch
// Set transparent background mode
pDC-> SetBkMode (TRANSPARENT);
// Set the background brush to empty
return (HBRUSH) :: GetStockObject (HOLLOW_BRUSH);
}
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