| |

VerySource

 Forgot password?
 Register
Search
View: 711|Reply: 4

Can I get the Hwnd of the mediaplayer control?

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-4 21:30:01
| Show all posts |Read mode
Can you get it?
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-7-9 17:00:01
| Show all posts
Which boss knows?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-16 16:45:01
| Show all posts
Is the mediaplayer control the Windows Media Player control?

  If so, you can try this, but it seems that the control must be found after the movie is loaded.

  lHand = FindWindowEx(Form1.hwnd, 0&, "WMPVideoWindow", vbNullString)
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-8-18 01:00:01
| Show all posts
lHand = FindWindowEx(Form1.hwnd, 0&, "WMPVideoWindow", vbNullString)
This requires a separate playback window. If it is used in a certain window, it will not be found.
Reply

Use magic Report

0

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-8-19 14:00:01
| Show all posts
Put the WindowsMdeiaPlayer control in a form Form1, use the API function GetClassName(Form1.hWnd, GetClassBuf, 256) to find the class name, and you can find the hWnd of the WindowsMdeiaPlayer control.
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