471,347 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

How to create an area ontop of another area

I am writing my own little video player, using
AxMicrosoft.MediaPlayer.Interop.AxWindowsMediaPlay er, and i want to add
stats when in fullscreen.

I am able to Draw to it with GDI+, but since there's a high framerate,
it flickers...

HWND = FindWindow("WindowsForms10.Window.8.app.0.378734a" ,

HWND = FindWindowEx(HWND, 0, "ATL:0754F282", null);

HWND = FindWindowEx(HWND, 0, "WMPVideoWindow", null);

System.Drawing.Graphics g =
System.Drawing.Graphics.FromHwnd(new IntPtr(HWND));

g.FillRectangle(System.Drawing.Brushes.Red, 5, 5, 50, 50);

This example draws a 50x50 red square ontop of the Fullscreen video

What i would like, is

to add a surface (label, whatever) ontop of this window,
find a way to draw flicker-free to it,
or directly inject the image into the Window via Subclassing.

If anyone could help me with any of these 3, please reply...

Dec 10 '05 #1
1 1596

Dec 10 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Cortes | last post: by
2 posts views Thread by Dan | last post: by
1 post views Thread by shayhk | last post: by
7 posts views Thread by Martin | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.