Keypress handling in fullscreen for MFC?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Keypress handling in fullscreen for MFC?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
TMS
Guest





Posted: Sun Oct 17, 2004 1:25 am    Post subject: Keypress handling in fullscreen for MFC? Reply with quote

How should you handle a keypress in fullscreen mode when the control is
embedded in a dialog using MFC?

I've created a simple dialog-based application using the wizard for VC++6.0
(as described in the SDK help on "Embedding the Windows Media Player Control
in an MFC Project"). I then use the context menu to zoom the window to
fullscreen, but then when I press any key, the visualization stops, the
player continues playing, and I don't get back to the dialog box. At that
point, the only thing that works is 'Ctrl-Alt-Del' and terminating the
process.

Experimentation has shown that I can create a handler for the mousedown
event for the player that simply has "m_player.SetFullScreen(FALSE)" that
works to exit fullscreen mode. The same approach does not work in a handler
for the keydown event for the player, however. Though I've verified that I do
get into the keydown handler, once I exit that handler, I don't seem to get
into any others. e.g. keyup.

What's the approach to handling keypresses in fullscreen when embedding the
control?

Thanks in advance,
--- TMS

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB