C ++应用程序中的Windows Media Player

时间:2016-12-16 17:52:26

标签: c++ windows windows-media-player

我正在编写可以在Windows Media Player中播放视频的小应用程序。我需要在全屏幕上调整大小,但我不能这样做:

int main(void)
{
    char szPath[] = "C:\\WindowsApi\\WindowsApi\\GandalfSax.wmv";//Path to video

    HINSTANCE hRet = ShellExecute(
        NULL, 
        "open",       
        szPath,      
        NULL,        
        NULL,        
        SW_SHOW|SW_MAXIMIZE);//Or SW_SHOWMAXIMIZED     
    return 0;
}

但这种方法不起作用。我认为Windows Player无法处理 这面旗帜。我不知道我怎么能以不同的方式做到这一点。 (Microsoft文档建议使用ATL,但我使用的是Express版本。)

0 个答案:

没有答案
相关问题