亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品久久久久久久久免费相片 | 日日夜夜精品视频免费| 久久国产精品无码网站| 99精品视频在线播放观看| 在线成人小视频| 亚洲美女屁股眼交| 国产毛片一区二区| 欧美疯狂性受xxxxx喷水图片| 久久久亚洲精品一区二区三区| 成人免费小视频| 国产精品综合在线视频| 5月丁香婷婷综合| 亚洲欧洲综合另类| 高清成人免费视频| 久久久久国产精品麻豆| 六月婷婷色综合| 日韩一区二区在线播放| 亚洲一区二区综合| 91视频在线观看免费| 国产蜜臀av在线一区二区三区| 蜜桃视频在线观看一区| 欧美肥大bbwbbw高潮| 午夜精品久久久久久久久久久| 99精品视频免费在线观看| 欧美激情一二三区| 国产91精品精华液一区二区三区| 日韩欧美国产不卡| 久久精品国产一区二区三 | 婷婷亚洲久悠悠色悠在线播放| bt7086福利一区国产| 欧美国产激情一区二区三区蜜月| 精品一区二区三区香蕉蜜桃 | 韩国v欧美v亚洲v日本v| 欧美xxx久久| 国产在线精品一区二区| 精品国产一区二区三区久久影院 | 欧美国产日韩亚洲一区| 国产传媒欧美日韩成人| 亚洲国产精品激情在线观看| 成人国产精品免费网站| 国产精品麻豆欧美日韩ww| 成人av在线电影| 中文字幕日本乱码精品影院| 色哟哟一区二区| 亚洲va国产天堂va久久en| 91精品在线一区二区| 久久99精品国产91久久来源| 久久精品一区蜜桃臀影院| 处破女av一区二区| 亚洲色图视频免费播放| 欧美日本一区二区三区四区| 日本成人在线一区| 欧美mv日韩mv国产网站| 成人av中文字幕| 亚洲成人免费视频| 日韩欧美中文字幕制服| 国产成人欧美日韩在线电影| 日韩毛片高清在线播放| 这里是久久伊人| 国产成人免费在线| 亚洲高清免费视频| 精品国产a毛片| 色悠悠久久综合| 蜜桃视频在线一区| 亚洲欧美一区二区三区国产精品 | 成人97人人超碰人人99| 午夜精品视频一区| 久久日韩精品一区二区五区| 不卡免费追剧大全电视剧网站| 亚洲精品免费一二三区| 精品久久久久久综合日本欧美| 成人性生交大片免费看视频在线| 亚洲免费av观看| 久久综合久久鬼色| 欧美亚洲国产一区二区三区va | 欧美经典三级视频一区二区三区| 91在线国产观看| 精油按摩中文字幕久久| 亚洲人吸女人奶水| 精品少妇一区二区| 在线免费观看视频一区| 国产高清一区日本| 午夜精品视频在线观看| 欧美韩国日本综合| 日韩美女天天操| 欧美中文字幕一区二区三区亚洲 | 视频在线观看一区| 中日韩免费视频中文字幕| 制服丝袜国产精品| 欧美午夜电影网| av成人免费在线| 国产高清在线精品| 韩国一区二区三区| 人妖欧美一区二区| 天天综合色天天综合| 国产精品久久久久一区二区三区| 日韩欧美一二区| 日韩三级在线观看| 欧美日韩日日骚| 欧美亚洲高清一区二区三区不卡| av一区二区三区在线| 国产成人av网站| 国产综合久久久久久久久久久久| 毛片一区二区三区| 青草av.久久免费一区| 午夜精品成人在线| 亚洲.国产.中文慕字在线| 一区二区三区四区高清精品免费观看 | 国产精品乱码一区二三区小蝌蚪| 日韩欧美久久久| 欧美日韩国产一区| 欧美亚一区二区| 欧美日韩欧美一区二区| 欧美日韩精品系列| 欧美一级高清片| 日韩欧美不卡在线观看视频| 337p亚洲精品色噜噜噜| 日韩一区二区影院| 精品国产91乱码一区二区三区 | 欧美一卡在线观看| 日韩西西人体444www| 日韩欧美在线123| 精品欧美一区二区三区精品久久| 日韩精品中文字幕在线一区| 欧美本精品男人aⅴ天堂| 久久久久久久久久久久久夜| 国产女同性恋一区二区| 国产精品美女久久久久aⅴ| 亚洲欧美日韩国产一区二区三区| 亚洲人成在线播放网站岛国| 亚洲宅男天堂在线观看无病毒| 午夜亚洲国产au精品一区二区| 亚洲成人福利片| 久88久久88久久久| 成人av网址在线观看| 欧美性生活久久| 91精品啪在线观看国产60岁| 久久久久久久综合日本| 亚洲欧美日韩精品久久久久| 午夜精品久久久久久不卡8050| 美女国产一区二区三区| 北岛玲一区二区三区四区| 欧美三级日韩在线| 精品伦理精品一区| 亚洲色图制服诱惑 | 日韩精品亚洲一区| 国产激情视频一区二区三区欧美 | 国产欧美一区二区三区网站| 亚洲三级在线看| 蜜桃视频在线一区| 99免费精品在线观看| 欧美一区二区三区四区五区| 国产调教视频一区| 亚洲6080在线| eeuss国产一区二区三区| 欧美高清视频一二三区| 亚洲国产精品二十页| 午夜精品一区二区三区免费视频| 国产一区二区免费在线| 欧美性三三影院| 久久精品一区二区三区不卡牛牛| 一区二区三区欧美日韩| 国产成人aaa| 日韩视频123| 亚洲一区二区三区在线播放| 大尺度一区二区| xf在线a精品一区二区视频网站| 亚洲精选一二三| 国产成a人无v码亚洲福利| 日韩一级片在线观看| 一区二区三区四区亚洲| 成人精品免费视频| 精品久久免费看| 日日夜夜一区二区| 欧美色大人视频| 一区二区国产盗摄色噜噜| 国产高清精品网站| 亚洲精品一线二线三线| 亚洲第一综合色| 欧美主播一区二区三区美女| 日韩一区在线看| 粉嫩aⅴ一区二区三区四区| 日韩视频免费观看高清完整版| 亚洲国产一区二区视频| 91视频xxxx| 国产精品久久久久久久久免费丝袜| 精品一区二区三区蜜桃| 日韩午夜激情视频| 日韩精品久久理论片| 欧美三级电影在线观看| 亚洲综合小说图片| 在线免费观看视频一区| 亚洲精品日产精品乱码不卡| 91色porny在线视频| 亚洲天天做日日做天天谢日日欢| 成人小视频免费在线观看| 国产精品免费视频观看| 粉嫩av亚洲一区二区图片| 国产精品你懂的在线欣赏| 高清成人在线观看|