Directshow开发的基本技巧[8]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 aoosang 的 blog

2 当你接到一个wm_displaychange消息,你就要调用ivmrwindowlesscontrol::displaymodechanged.

3 当你接到一个wm_size消息时,重新计算视频的位置,然后调用setvideopostion

下面的代码演示了wm_paint消息的处理

void onpaint(hwnd hwnd)

{

    paintstruct ps;

    hdc         hdc;

    rect        rcclient;

    getclientrect(hwnd, &rcclient);

    hdc = beginpaint(hwnd, &ps);

    if (g_pwc != null)

    {

        // find the region where the application can paint by subtracting

        // the video destination rectangle from the client area.

        // (assume that g_rcdest was calculated previously.)

本文关键:Directshow开发的基本技巧
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top