Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

goodoljosh1980

@goodoljosh1980
About
Posts
37
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using MCIWndPutSource
    G goodoljosh1980

    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.

    C / C++ / MFC c++ design question

  • Using MCIWndPutSource
    G goodoljosh1980

    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.

    C / C++ / MFC c++ design question

  • Using MCIWndPutSource
    G goodoljosh1980

    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.

    C / C++ / MFC c++ design question

  • Opening Word with "Pen" selected instead of cursor
    G goodoljosh1980

    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.

    C / C++ / MFC c++ mobile help question

  • Opening Word with "Pen" selected instead of cursor
    G goodoljosh1980

    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.

    C / C++ / MFC c++ mobile help question

  • Pausing Audio feedback....
    G goodoljosh1980

    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.

    C / C++ / MFC c++ beta-testing help tutorial question

  • playing a .wmv file in an MFC application
    G goodoljosh1980

    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?

    C / C++ / MFC c++ question

  • playing a .wmv file in an MFC application
    G goodoljosh1980

    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:

    C / C++ / MFC c++ question

  • Adding bullets to a list in a dialog
    G goodoljosh1980

    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.

    C / C++ / MFC tutorial question

  • Adding bullets to a list in a dialog
    G goodoljosh1980

    you mean like ascii codes? How do I insert them into a CString?

    C / C++ / MFC tutorial question

  • Adding bullets to a list in a dialog
    G goodoljosh1980

    sorry, bullet text

    C / C++ / MFC tutorial question

  • Adding bullets to a list in a dialog
    G goodoljosh1980

    I am trying to output some bullet points to my dialog. Anyone know how to code this using CString/strings, etc.?

    C / C++ / MFC tutorial question

  • multi-thread question, perhaps
    G goodoljosh1980

    That was it, thank you. I appreciate the help.:)

    C / C++ / MFC question help tutorial announcement

  • how to kill a process
    G goodoljosh1980

    Look at: http://www.codeproject.com/cpp/kill_process.asp?df=100&forumid=132&exp=0&select=4095[^] That should help.

    C / C++ / MFC tutorial

  • multi-thread question, perhaps
    G goodoljosh1980

    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

    C / C++ / MFC question help tutorial announcement

  • multi-thread question, perhaps
    G goodoljosh1980

    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.

    C / C++ / MFC question help tutorial announcement

  • multi-thread question, perhaps
    G goodoljosh1980

    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.

    C / C++ / MFC question help tutorial announcement

  • multi-thread question, perhaps
    G goodoljosh1980

    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:

    C / C++ / MFC question help tutorial announcement

  • Closing Word
    G goodoljosh1980

    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

    Visual Basic c++ help

  • Picture Control to load BMP
    G goodoljosh1980

    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.

    C / C++ / MFC c++ graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups