亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interface.cpp

?? video linux conference
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************** * interface.cpp: WinCE gui plugin for VLC ***************************************************************************** * Copyright (C) 2003 VideoLAN * $Id: interface.cpp 10570 2005-04-06 08:27:13Z gbazin $ * * Authors: Marodon Cedric <cedric_marodon@yahoo.fr> *          Gildas Bazin <gbazin@videolan.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, * USA. *****************************************************************************//***************************************************************************** * Preamble *****************************************************************************/#include <vlc/vlc.h>#include <vlc/aout.h>#include <vlc/vout.h>#include <vlc/intf.h>#include "wince.h"#include <windowsx.h>#include <commctrl.h>#include <commdlg.h>#define NUMIMAGES     9   // Number of buttons in the toolbar           #define IMAGEWIDTH    17   // Width of the buttons in the toolbar  #define IMAGEHEIGHT   16   // Height of the buttons in the toolbar  #define BUTTONWIDTH   0    // Width of the button images in the toolbar#define BUTTONHEIGHT  0    // Height of the button images in the toolbar#define ID_TOOLBAR    2000 // Identifier of the main tool bar// Help strings#define HELP_SIMPLE _T("Quick file open")#define HELP_ADV    _T("Advanced open")#define HELP_FILE   _T("Open a file")#define HELP_DISC   _T("Open Disc Media")#define HELP_NET    _T("Open a network stream")#define HELP_SAT    _T("Open a satellite stream")#define HELP_EJECT  _T("Eject the DVD/CD")#define HELP_EXIT   _T("Exit this program")#define HELP_OTHER _T("Open other types of inputs")#define HELP_PLAYLIST   _T("Open the playlist")#define HELP_LOGS       _T("Show the program logs")#define HELP_FILEINFO   _T("Show information about the file being played")#define HELP_PREFS _T("Go to the preferences menu")#define HELP_ABOUT _T("About this program")#define HELP_STOP _T("Stop")#define HELP_PLAY _T("Play")#define HELP_PAUSE _T("Pause")#define HELP_PLO _T("Playlist")#define HELP_PLP _T("Previous playlist item")#define HELP_PLN _T("Next playlist item")#define HELP_SLOW _T("Play slower")#define HELP_FAST _T("Play faster")// The TBBUTTON structure contains information the toolbar buttons.static TBBUTTON tbButton[] =      {  {0, ID_FILE_QUICKOPEN,        TBSTATE_ENABLED, TBSTYLE_BUTTON},  {1, ID_FILE_OPENNET,       TBSTATE_ENABLED, TBSTYLE_BUTTON},  {0, 0,              TBSTATE_ENABLED, TBSTYLE_SEP},  {2, StopStream_Event,       TBSTATE_ENABLED, TBSTYLE_BUTTON},  {3, PlayStream_Event,        TBSTATE_ENABLED, TBSTYLE_BUTTON},  {0, 0,              TBSTATE_ENABLED, TBSTYLE_SEP},  {4, ID_VIEW_PLAYLIST,       TBSTATE_ENABLED, TBSTYLE_BUTTON},  {0, 0,              TBSTATE_ENABLED, TBSTYLE_SEP},  {5, PrevStream_Event,      TBSTATE_ENABLED, TBSTYLE_BUTTON},  {6, NextStream_Event,      TBSTATE_ENABLED, TBSTYLE_BUTTON},  {0, 0,              TBSTATE_ENABLED, TBSTYLE_SEP},  {7, SlowStream_Event,      TBSTATE_ENABLED, TBSTYLE_BUTTON},  {8, FastStream_Event,       TBSTATE_ENABLED, TBSTYLE_BUTTON},};// Toolbar ToolTipsTCHAR * szToolTips[] = {    HELP_SIMPLE, HELP_NET, HELP_STOP, HELP_PLAY, HELP_PLO, HELP_PLP,    HELP_PLN, HELP_SLOW, HELP_FAST};/***************************************************************************** * Constructor. *****************************************************************************/Interface::Interface( intf_thread_t *p_intf, CBaseWindow *p_parent,                      HINSTANCE h_inst )  : CBaseWindow( p_intf, p_parent, h_inst ),    hwndMain(0), hwndCB(0), hwndTB(0), hwndSlider(0), hwndLabel(0),    hwndVol(0), hwndSB(0), timer(0), video(0), b_volume_hold(0){}Interface::~Interface(){    if( timer ) delete timer;    if( video ) delete video;}BOOL Interface::InitInstance(){    /* Initializations */    i_old_playing_status = PAUSE_S;    int i_style = WS_VISIBLE;#ifndef UNDER_CE    i_style |= WS_OVERLAPPEDWINDOW | WS_SIZEBOX;#endif    // Create main window    hwndMain =        CreateWindow( _T("VLC WinCE"), _T("VLC media player"), i_style,                      0, MENU_HEIGHT, CW_USEDEFAULT, CW_USEDEFAULT,                      NULL, NULL, GetInstance(), (void *)this );    if( !hwndMain ) return FALSE;    ShowWindow( hwndMain, TRUE );    UpdateWindow( hwndMain );    return TRUE;}/***********************************************************************FUNCTION:   CreateMenuBarPURPOSE:   Creates a menu bar.***********************************************************************/HWND Interface::CreateMenuBar( HWND hwnd, HINSTANCE hInst ){    HMENU menu_file, menu_view;#ifdef UNDER_CE    SHMENUBARINFO mbi;    memset( &mbi, 0, sizeof(SHMENUBARINFO) );    mbi.cbSize     = sizeof(SHMENUBARINFO);    mbi.hwndParent = hwnd;    mbi.hInstRes   = hInst;    mbi.nToolBarId = IDR_MENUBAR;    if( !SHCreateMenuBar( &mbi ) )    {        MessageBox(hwnd, _T("SHCreateMenuBar Failed"), _T("Error"), MB_OK);        return 0;    }    TBBUTTONINFO tbbi;    tbbi.cbSize = sizeof(tbbi);    tbbi.dwMask = TBIF_LPARAM;    SendMessage( mbi.hwndMB, TB_GETBUTTONINFO, IDM_FILE, (LPARAM)&tbbi );    menu_file = (HMENU)tbbi.lParam;    RemoveMenu( menu_file, 0, MF_BYPOSITION );    SendMessage( mbi.hwndMB, TB_GETBUTTONINFO, IDM_VIEW, (LPARAM)&tbbi );    menu_view = (HMENU)tbbi.lParam;    RemoveMenu( menu_view, 0, MF_BYPOSITION );    SendMessage( mbi.hwndMB, TB_GETBUTTONINFO, IDM_SETTINGS, (LPARAM)&tbbi );    menu_settings = (HMENU)tbbi.lParam;    SendMessage( mbi.hwndMB, TB_GETBUTTONINFO, IDM_VIDEO, (LPARAM)&tbbi );    menu_video = (HMENU)tbbi.lParam;    SendMessage( mbi.hwndMB, TB_GETBUTTONINFO, IDM_AUDIO, (LPARAM)&tbbi );    menu_audio = (HMENU)tbbi.lParam;    SendMessage( mbi.hwndMB, TB_GETBUTTONINFO, IDM_NAVIGATION, (LPARAM)&tbbi );    menu_navigation = (HMENU)tbbi.lParam;#else    menu_file = CreatePopupMenu();    menu_view = CreatePopupMenu();    menu_settings = CreatePopupMenu();    menu_audio = CreatePopupMenu();    menu_video = CreatePopupMenu();    menu_navigation = CreatePopupMenu();#endif    AppendMenu( menu_file, MF_STRING, ID_FILE_QUICKOPEN,                _T("Quick &Open File...") );    AppendMenu( menu_file, MF_SEPARATOR, 0, 0 );    AppendMenu( menu_file, MF_STRING, ID_FILE_OPENFILE,                _T("Open &File...") );    AppendMenu( menu_file, MF_STRING, ID_FILE_OPENDIR,                _T("Open &Directory...") );    AppendMenu( menu_file, MF_STRING, ID_FILE_OPENNET,                _T("Open &Network Stream...") );    AppendMenu( menu_file, MF_SEPARATOR, 0, 0 );    AppendMenu( menu_file, MF_STRING, ID_FILE_ABOUT,                _T("About VLC") );    AppendMenu( menu_file, MF_STRING, ID_FILE_EXIT,                _T("E&xit") );    AppendMenu( menu_view, MF_STRING, ID_VIEW_PLAYLIST,                _T("&Playlist...") );    AppendMenu( menu_view, MF_STRING, ID_VIEW_MESSAGES,                _T("&Messages...") );    AppendMenu( menu_view, MF_STRING, ID_VIEW_STREAMINFO,                _T("Stream and Media &info...") );    AppendMenu( menu_settings, MF_STRING, ID_PREFERENCES,                _T("&Preferences...") );#ifdef UNDER_CE    return mbi.hwndMB;#else    HMENU hmenu = CreateMenu();    AppendMenu( hmenu, MF_POPUP|MF_STRING, (UINT)menu_file, _T("File") );    AppendMenu( hmenu, MF_POPUP|MF_STRING, (UINT)menu_view, _T("View") );    AppendMenu( hmenu, MF_POPUP|MF_STRING, (UINT)menu_settings,                _T("Settings") );    AppendMenu( hmenu, MF_POPUP|MF_STRING, (UINT)menu_audio, _T("Audio") );    AppendMenu( hmenu, MF_POPUP|MF_STRING, (UINT)menu_video, _T("Video") );    AppendMenu( hmenu, MF_POPUP|MF_STRING, (UINT)menu_navigation, _T("Nav") );    SetMenu( hwnd, hmenu );    return 0;#endif}/***********************************************************************FUNCTION:   CreateToolBarPURPOSE:   Registers the TOOLBAR control class and creates a toolbar.***********************************************************************/HWND CreateToolBar( HWND hwnd, HINSTANCE hInst ){    DWORD dwStyle;    HWND hwndTB;    RECT rect, rectTB;    INITCOMMONCONTROLSEX iccex;    iccex.dwSize = sizeof(INITCOMMONCONTROLSEX);    iccex.dwICC = ICC_BAR_CLASSES;    // Registers TOOLBAR control classes from the common control dll    InitCommonControlsEx (&iccex);    //  Create the toolbar control    dwStyle = WS_VISIBLE | WS_CHILD | TBSTYLE_TOOLTIPS |        WS_EX_OVERLAPPEDWINDOW | CCS_NOPARENTALIGN;    hwndTB = CreateToolbarEx( hwnd, dwStyle, 0, NUMIMAGES,        hInst, IDB_BITMAP1, tbButton, sizeof(tbButton) / sizeof(TBBUTTON),        BUTTONWIDTH, BUTTONHEIGHT, IMAGEWIDTH, IMAGEHEIGHT, sizeof(TBBUTTON) );    if( !hwndTB ) return NULL;      // Add ToolTips to the toolbar.    SendMessage( hwndTB, TB_SETTOOLTIPS, (WPARAM)NUMIMAGES,                  (LPARAM)szToolTips );    // Reposition the toolbar.    GetClientRect( hwnd, &rect );    GetWindowRect( hwndTB, &rectTB );    MoveWindow( hwndTB, rect.left, rect.bottom - rect.top - 2*MENU_HEIGHT,                 rect.right - rect.left, MENU_HEIGHT, TRUE );    return hwndTB;}/***********************************************************************FUNCTION:   CreateSliderBarPURPOSE:   Registers the TRACKBAR_CLASS control class and creates a trackbar.***********************************************************************/HWND CreateSliderBar( HWND hwnd, HINSTANCE hInst ){    HWND hwndSlider;    RECT rect;    INITCOMMONCONTROLSEX iccex;    iccex.dwSize = sizeof( INITCOMMONCONTROLSEX );    iccex.dwICC = ICC_BAR_CLASSES;    // Registers TRACKBAR_CLASS control classes from the common control dll    InitCommonControlsEx( &iccex );    hwndSlider = CreateWindowEx( 0, TRACKBAR_CLASS, NULL,                WS_CHILD | WS_VISIBLE | TBS_HORZ | WS_EX_OVERLAPPEDWINDOW |                TBS_BOTTOM,  //|WS_CLIPSIBLINGS,                0, 0, 0, 0, hwnd, NULL, hInst, NULL );    if( !hwndSlider ) return NULL;    SendMessage( hwndSlider, TBM_SETRANGEMIN, 1, 0 );    SendMessage( hwndSlider, TBM_SETRANGEMAX, 1, SLIDER_MAX_POS );    SendMessage( hwndSlider, TBM_SETPOS, 1, 0 );    // Reposition the trackbar    GetClientRect( hwnd, &rect );    MoveWindow( hwndSlider, rect.left,                 rect.bottom - rect.top - 2*(MENU_HEIGHT-1) - SLIDER_HEIGHT,                 rect.right - rect.left - 40, 30, TRUE );    ShowWindow( hwndSlider, SW_HIDE );    return hwndSlider;}HWND CreateStaticText( HWND hwnd, HINSTANCE hInst ){    HWND hwndLabel;    RECT rect;    hwndLabel = CreateWindowEx( 0, _T("STATIC"), _T("label"),                                WS_CHILD | WS_VISIBLE | SS_CENTER ,                                0, 0, 0, 0, hwnd, (HMENU)1980, hInst, NULL );    // Reposition the trackbar    GetClientRect( hwnd, &rect );    MoveWindow( hwndLabel, rect.left,                rect.bottom - rect.top - 2*(MENU_HEIGHT-1) - SLIDER_HEIGHT +30,                rect.right - rect.left - 40,                SLIDER_HEIGHT - 30, TRUE );    ShowWindow( hwndLabel, SW_HIDE );    return hwndLabel;}/***********************************************************************FUNCTION:   CreateVolTrackBarPURPOSE:   Registers the TRACKBAR_CLASS control class and creates a trackbar.***********************************************************************/HWND CreateVolTrackBar( HWND hwnd, HINSTANCE hInst ){    HWND hwndVol;    RECT rect;    INITCOMMONCONTROLSEX iccex;    iccex.dwSize = sizeof( INITCOMMONCONTROLSEX );    iccex.dwICC = ICC_BAR_CLASSES;    // Registers TRACKBAR_CLASS control classes from the common control dll    InitCommonControlsEx( &iccex );    hwndVol = CreateWindowEx( 0, TRACKBAR_CLASS, NULL,                WS_CHILD | WS_VISIBLE | TBS_VERT | TBS_RIGHT | TBS_AUTOTICKS |                WS_EX_OVERLAPPEDWINDOW, //|WS_CLIPSIBLINGS,                0, 0, 0, 0, hwnd, NULL, hInst, NULL );    if( !hwndVol ) return NULL;    SendMessage( hwndVol, TBM_SETRANGEMIN, 1, 0 );    SendMessage( hwndVol, TBM_SETRANGEMAX, 1, 200 );    SendMessage( hwndVol, TBM_SETPOS, 1, 100 );    SendMessage( hwndVol, TBM_SETTICFREQ, 50, 0 );      // Reposition the trackbar    GetClientRect( hwnd, &rect );    MoveWindow( hwndVol, rect.right - rect.left - 40,                 rect.bottom - rect.top - 2*(MENU_HEIGHT-1) - SLIDER_HEIGHT,                 40, SLIDER_HEIGHT, TRUE );    ShowWindow( hwndVol, SW_HIDE );    return hwndVol;}/***********************************************************************FUNCTION:   CreateStatusBarPURPOSE:   Registers the StatusBar control class and creates a Statusbar.***********************************************************************/HWND CreateStatusBar( HWND hwnd, HINSTANCE hInst ){    DWORD dwStyle;    HWND hwndSB;    RECT rect;    INITCOMMONCONTROLSEX iccex;    iccex.dwSize = sizeof (INITCOMMONCONTROLSEX);    iccex.dwICC = ICC_BAR_CLASSES;    // Registers Statusbar control classes from the common control dll    InitCommonControlsEx( &iccex );    // Create the statusbar control    dwStyle = WS_VISIBLE | WS_CHILD | TBSTYLE_TOOLTIPS | CCS_NOPARENTALIGN;    hwndSB = CreateWindowEx( 0, STATUSCLASSNAME, NULL,                             WS_CHILD | WS_VISIBLE | TBS_VERT | TBS_BOTTOM |                             TBS_RIGHT  |WS_CLIPSIBLINGS,                             0, 0, CW_USEDEFAULT, 50, hwnd, NULL, hInst, 0 );    if (!hwndSB ) return NULL;    // Get the coordinates of the parent window's client area.     GetClientRect( hwnd, &rect );    // allocate memory for the panes of status bar    int nopanes = 2;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲资源网| 欧美日韩免费观看一区三区| 一本在线高清不卡dvd| 欧美一区二区在线不卡| 国产精品欧美一级免费| 免费久久99精品国产| 91成人免费在线| 中文字幕av一区二区三区高 | 久久99久久精品| 欧美美女bb生活片| 国产精品日日摸夜夜摸av| 强制捆绑调教一区二区| 欧美日韩综合一区| 亚洲三级在线观看| 成人黄色免费短视频| 精品国产免费一区二区三区香蕉| 亚洲成人一区在线| 日本高清不卡视频| 中文字幕在线视频一区| 国产91丝袜在线播放| 欧美成人伊人久久综合网| 亚洲午夜私人影院| 色av成人天堂桃色av| 日韩毛片精品高清免费| 成人免费毛片高清视频| 国产日韩欧美高清| 韩国三级在线一区| 欧美大片拔萝卜| 喷水一区二区三区| 欧美一区二区三区小说| 亚洲电影一区二区三区| 色噜噜夜夜夜综合网| 亚洲激情网站免费观看| 99久久国产免费看| 综合久久久久综合| 成人av在线一区二区三区| 国产亚洲成aⅴ人片在线观看| 久久99国产精品免费网站| 日韩欧美成人午夜| 经典三级视频一区| 久久精品一区四区| 懂色av中文字幕一区二区三区| 国产日韩欧美在线一区| 欧美区在线观看| 日韩国产欧美在线播放| 欧美电影免费观看高清完整版在 | 综合婷婷亚洲小说| 色嗨嗨av一区二区三区| 五月天婷婷综合| 日韩久久精品一区| 高清在线不卡av| 亚洲精品国产a久久久久久| 欧美午夜在线观看| 美日韩一级片在线观看| www成人在线观看| 国产aⅴ综合色| 亚洲激情在线播放| 欧美一区二区三区色| 韩国一区二区在线观看| 国产精品区一区二区三区| 91视频国产资源| 日韩成人伦理电影在线观看| 国产欧美日韩激情| 欧美亚洲国产一区二区三区va| 免费看黄色91| 日韩毛片在线免费观看| 欧美一区永久视频免费观看| 国产盗摄精品一区二区三区在线| ...av二区三区久久精品| 欧美日韩大陆在线| 欧美特级限制片免费在线观看| 日韩在线一区二区| 中文字幕欧美日韩一区| 欧美日韩精品专区| 成人影视亚洲图片在线| 热久久国产精品| 中文字幕在线一区二区三区| 日韩视频一区二区在线观看| 丁香桃色午夜亚洲一区二区三区| 亚洲成人免费在线观看| 国产欧美日韩视频一区二区| 欧美人xxxx| 97久久久精品综合88久久| 精品一区二区三区在线播放 | 欧美三级中文字| 顶级嫩模精品视频在线看| 青青草成人在线观看| 亚洲三级理论片| 久久久久久日产精品| 在线成人av网站| 91国产视频在线观看| 成人影视亚洲图片在线| 国产乱理伦片在线观看夜一区| 午夜伦理一区二区| 亚洲人成在线观看一区二区| 久久久久9999亚洲精品| 精品人在线二区三区| 在线观看91av| 在线精品视频一区二区| 国产成人自拍高清视频在线免费播放| 午夜精品久久久久久久久| 亚洲精品中文在线观看| 中文字幕一区二区在线观看| 国产三区在线成人av| 欧美成人一区二区| 欧美一区二视频| 欧美激情一区不卡| 欧美成人精品1314www| 欧美日韩一级视频| 色综合天天天天做夜夜夜夜做| 成人激情视频网站| 成人不卡免费av| 成a人片国产精品| 成人激情小说网站| 成人动漫一区二区三区| av一区二区不卡| 97久久精品人人澡人人爽| 一本色道久久加勒比精品| 色婷婷精品久久二区二区蜜臀av| aaa亚洲精品| 在线亚洲人成电影网站色www| 色就色 综合激情| 欧美福利一区二区| 精品国偷自产国产一区| 久久―日本道色综合久久| 国产亚洲成av人在线观看导航| 国产精品网站在线播放| 亚洲色图欧美偷拍| 亚洲国产视频一区| 日本在线不卡视频一二三区| 久久精品国产99国产精品| 国产乱人伦偷精品视频不卡| 成人国产一区二区三区精品| 97久久精品人人做人人爽| 欧美色爱综合网| 日韩免费电影一区| 国产亚洲精品资源在线26u| 国产精品免费av| 亚洲精品国产视频| 美女视频黄免费的久久| 国产成+人+日韩+欧美+亚洲| 在线一区二区三区做爰视频网站| 欧美美女bb生活片| 久久精品视频一区| 亚洲伊人色欲综合网| 久久国产精品露脸对白| 东方欧美亚洲色图在线| 91福利社在线观看| 日韩一级片在线观看| 国产精品全国免费观看高清| 亚洲一区在线观看视频| 国产一区二区按摩在线观看| 色婷婷亚洲精品| 精品日产卡一卡二卡麻豆| 一区二区三区免费观看| 国产在线一区观看| 在线国产亚洲欧美| 久久久综合九色合综国产精品| 亚洲激情自拍视频| 国产美女久久久久| 欧美一a一片一级一片| 欧美不卡一区二区| 亚洲资源在线观看| 懂色av一区二区三区免费看| 欧美老女人在线| 最新热久久免费视频| 美女视频一区在线观看| 色婷婷亚洲一区二区三区| 久久综合网色—综合色88| 夜夜嗨av一区二区三区中文字幕| av激情成人网| 欧美一区二区三区视频免费 | 日本不卡一区二区三区高清视频| 国产不卡在线播放| 欧美一区二区视频在线观看2020| 一区在线中文字幕| 韩国中文字幕2020精品| 3751色影院一区二区三区| 日韩一区中文字幕| 国产·精品毛片| 国产午夜精品一区二区三区四区 | 亚洲精品网站在线观看| 国产精品综合一区二区三区| 日韩三级av在线播放| 亚瑟在线精品视频| 在线精品视频一区二区三四| 亚洲天堂精品在线观看| av动漫一区二区| 日本一区二区综合亚洲| 久久99精品国产91久久来源| 日韩一区二区在线免费观看| 亚洲大型综合色站| 欧美午夜精品久久久久久孕妇| 中文字幕一区二区视频| 国产麻豆午夜三级精品| 日韩一区二区电影| 六月丁香综合在线视频| 成人免费高清在线| 国产一区二区网址| 欧美无砖砖区免费|