Rajkumar R wrote:
then you just want to move the MCI child window, m_Player, right?
Yes, I want to move the child window, but neither MoveWindow or SetWindowPos allow me to do that from what I can tell.
Rajkumar R wrote:
then you just want to move the MCI child window, m_Player, right?
Yes, I want to move the child window, but neither MoveWindow or SetWindowPos allow me to do that from what I can tell.
Rajkumar R wrote:
MCIWndPutSource is to crop the video image, it seems you want to use MCIWndPutDest.
I have tried the PutDest function as well. When I use this, the video inside the window shifts, but the window in which it plays does not. Basically, when the video starts to play, the child window (the video player) defaults to the upper left hand corner. If I use any of the MCI functions, it seems that the video within the player window will shift, but not the window itself which is what I am looking for.
I am using the MCIWnd class to play a video within my MFC application. However, the video location in the UI defaults to the upper left hand corner. I am trying to move that location using the MCIWndPutSource function. Here is what I am trying:
m_Player = MCIWndCreate(GetSafeHwnd(),AfxGetInstanceHandle(),
WS_CHILDWINDOW | WS_VISIBLE | MCIWNDF_NOMENU, name);
RECT \*temp = new RECT;
temp->left = 0;
temp->top = 500;
temp->right = 320;
temp->bottom = 740;
MCIWndSetZoom(m\_Player, 200);
MCIWndPutSource(m\_Player, temp);
MCIWndPlay(m\_Player);
After the PutSource call, if I call the GetSource function, it returns back the original coordinates as if I did not move the location at all. Anyone have an idea why this isn't working, or how I can accomplish this another way? Thanks for anything.
When you typically open Word, the cursor is selected to allow for immediate typing on the keyboard. With a tablet PC, there is also a pen selection to where the user can "draw" on the screen with the stylus, instead of the normal cursor. I am looking for a way to open Word with this pen selected as the default rather than the cursor.
Does anyone know of a way to have a program (MFC) open Microsoft Word with the Pen selected instead of the cursor? I am working on a program with a tablet PC, and want to find a way to have Windows select the pen when it opens rather than the cursor. Any help or suggestions would be greatly appreciated. Thanks for anything.
Hello all, I am currently using the sndPlaySound function in an MFC app. Some users are asking if it is possible to pause the audio in the middle as they are typically 3-4 min. audio files that are being played. Does anyone have any ideas on how to do this? Any help at all will be greatly appreciated. Thanks.
I have since tried this and was able to load the video, but the playback is VERY choppy. It seems that it pauses about once a second as if it caching more of the video. Any suggestions as to why this happens?
All, Is there an easy way, in an MFC application, to launch and automatically play a .WMV file? I don't want to open Windows Media Player, but instead have this video play inside my application. Thanks in advance.:confused:
that is, I can't find bullet points in the ASCII chart, if you have the value let me know and I can insert them using the CString::AddChar() function, I think.
you mean like ascii codes? How do I insert them into a CString?
sorry, bullet text
I am trying to output some bullet points to my dialog. Anyone know how to code this using CString/strings, etc.?
That was it, thank you. I appreciate the help.:)
Look at: http://www.codeproject.com/cpp/kill_process.asp?df=100&forumid=132&exp=0&select=4095[^] That should help.
Thank you for the help. Can you point me in the direction of Timer message info? I have never heard of this before. Thanks again. Josh
No, I am not using any other flags in the sndPlaySound function. That seems to be working. What i am having a problem with (now that I look at it further), is in my ability to update the window as I need to. I am using a simple 'wait until X amount of time has passed', then I update some values, call Invalidate(); followed by a UpdateWindow(). This all works unless, in the middle of my function where I am drawing the window, the user clicks my window. Then, it doesn't update until the very end of the function and I am not sure why. I originally thought that maybe having the sound play on another thread would help, but it isn't.
I am already using the SND_ASYNC flag on sndPlaySound function. It seems that the drawing of the window doesn't happen once the user clicks anything in the window.
I am writing a program where I want a sound file to play while I update the main window. I have everything implemented with the sndPlaySound() function, but when the program runs, it becomes unresponsive as long as the sound clip is running. That is, if the user tries to move the window, the whole thing goes white until the function that is updating the window is finished as well as the sound has stopped playing. I implemented a second thread to try to do nothing but call the sndPlaySound function, but that did not work either. It played the sound, but the window still goes unresponsive if anything interrupts in my functions. Does anyone have ideas on how to do this properly? I have searched through the multi-threaded posts, but haven't found anything so far. Please help, if possible. Or point me in another direction on how to implement this properly. Thanks.:confused:
Hello all, I am a complete NEWBIE to VB programming, I usually do everything through C++. However, I am using Word for part of a program and am adding command buttons. In the function, I am trying to simply save the document and exit Word. Here is the code I have, but it doesn't seem to do anything. Thanks in advance for the help.... Private Sub CommandButton1_Click() ActiveDocument.Save ActiveDocument.Close Application.Quit End Sub
I am not trying to draw a button, I am simply trying to load a bitmap on a screen to show them things. Instead of having 20 variables each with only 1 BMP that it shows, I want to be able to have 3 or 4 and have them be able to switch to different BMPs to load up. However, when I do that and call the ShowWindow(1) function, nothing happens.