|
-
Aug 13th, 2001, 08:46 PM
#1
Thread Starter
Hyperactive Member
Please Help Difficult Problem.
How would I output text to a fullscreen window ?? I can get the hwnd of the window and its DC, but i can't seem to output text to this window when its in fullscreen. I'm using the MCI api to play media files, and when i call the mci command to go fullscreen, i cannot output text to the window, why ?? I'm sure somebody here can help me out... I would like to use pure API to accomplish this, thanx.
AAG
This Business Is Binary. Your a 1 or a 0. Alive or Dead. (AntiTrust)
-
Aug 13th, 2001, 09:32 PM
#2
Good Ol' Platypus
Hmmmmmmm........
Is it your app that's going full screen? I'm confused.. how do you use MCI commands to make something full-screen? If you want to output text to the desktop (the actual screen, on top of everything) you would use the TextOut API with the DC the desktop window:That'll give you the DC you're looking for (probably!). I hope this helps, and good luck.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Aug 13th, 2001, 09:38 PM
#3
Thread Starter
Hyperactive Member
Open up windows media player, open a movie, right click on the video and hit fullscreen. This is exactly what i'm doing but thru the use of the MCI API. I have already tried textout by getting the dc of the video and it works when the video is in normal mode, but when i go fullscreen with this function
VB Code:
Public Function Play_Fullscreen(AliasName As String)
Dim cmdToDo As String * 128
cmdToDo = "play " & AliasName & " fullscreen"
Call mciSendString(cmdToDo, 0&, 0&, 0&) 'play
End Function
textout does not work. I've tried using a timer and doing textout every 1 ms, but still doesn't work.
This Business Is Binary. Your a 1 or a 0. Alive or Dead. (AntiTrust)
-
Aug 13th, 2001, 09:43 PM
#4
Good Ol' Platypus
Ah, you didnt mention you were doing a VIDEO. Sorry.
For your problem, you will probably have to change the way you draw the video, if you actually do. If MCI does it for you, you'll have to do it yourself, and make sure the TextOut API happens somewhere between there and blitting it to the screen.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Aug 13th, 2001, 10:39 PM
#5
Addicted Member
Could you put a transparent form over everything (stay on top)and print text here?
( : ns-code : )
FCP Products

-
Aug 13th, 2001, 11:27 PM
#6
Thread Starter
Hyperactive Member
no, yo don't seem to know how the MCI API works. anyways, i think i'll just stretch the video the whole screen and simply hide the taskbar or something and print the text since the video will still be in a window but look fullscreen. ooh well, maybe i'll figure out how to right to a video_overlay later. well thanx for the help, laterz....
This Business Is Binary. Your a 1 or a 0. Alive or Dead. (AntiTrust)
-
Aug 14th, 2001, 07:43 AM
#7
Good Ol' Platypus
Another thing you may have forgotten to mention: Video-OVERLAY. This means your card is doing the work, and you can't intervene in software. (usually) This is most likely what's happening, then.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Aug 14th, 2001, 12:46 PM
#8
Thread Starter
Hyperactive Member
If i can't intervene, then how are movie subtitles done. Its text being outputed to the screen. DVD's do it, and so do some movie players out there. If i were to ripp a dvd, i can also ripp its subtitles if they were available. Its simply a text file that contains each positions and then the text to output. I know its possible with direct X, but i've also seen some that do it without Direct X. Anyways, nevermind...
This Business Is Binary. Your a 1 or a 0. Alive or Dead. (AntiTrust)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|