📄 wince.h
字号:
HWND delay_label; HWND delay_edit; HWND delay_spinctrl; HWND fps_label; HWND fps_edit; HWND fps_spinctrl; virtual LRESULT WndProc( HWND, UINT, WPARAM, LPARAM ); /* Event handlers (these functions should _not_ be virtual) */ void OnFileBrowse();};/* Playlist */class Playlist : public CBaseWindow{public: /* Constructor */ Playlist( intf_thread_t *, CBaseWindow *, HINSTANCE ); virtual ~Playlist(){}; void UpdatePlaylist(); void ShowPlaylist( bool );protected: bool b_need_update; vlc_mutex_t lock; int i_title_sorted; int i_author_sorted; HWND hwndCB; // Handle to the command bar (contains menu) HWND hwndTB; // Handle to the toolbar. HWND hListView; void Rebuild(); void UpdateItem( int ); LRESULT ProcessCustomDraw( LPARAM lParam ); void HandlePopupMenu( HWND hwnd, POINT point); void DeleteItem( int item ); void OnOpen(); void OnSave(); void OnDeleteSelection(); void OnInvertSelection(); void OnEnableSelection(); void OnDisableSelection(); void OnSelectAll(); void OnActivateItem( int i_item ); void ShowInfos( HWND hwnd, int i_item ); void OnUp(); void OnDown(); void OnRandom(); void OnLoop(); void OnRepeat(); void OnSort( UINT event ); void OnColSelect( int iSubItem ); void OnPopupPlay(); void OnPopupDel(); void OnPopupEna(); void OnPopupInfo( HWND hwnd ); virtual LRESULT WndProc( HWND, UINT, WPARAM, LPARAM );};/* Timer */class Timer{public: /* Constructor */ Timer( intf_thread_t *p_intf, HWND hwnd, Interface *_p_main_interface ); virtual ~Timer(); void Notify( void );private: intf_thread_t *p_intf; Interface *p_main_interface; //Interface *p_main_interface; int i_old_playing_status; int i_old_rate;};/* Menus */void RefreshSettingsMenu( intf_thread_t *_p_intf, HMENU hMenu );void RefreshAudioMenu( intf_thread_t *_p_intf, HMENU hMenu );void RefreshVideoMenu( intf_thread_t *_p_intf, HMENU hMenu );void RefreshNavigMenu( intf_thread_t *_p_intf, HMENU hMenu );void RefreshMenu( intf_thread_t *, vector<MenuItemExt*> *, HMENU, int, char **, int *, int );int wce_GetMenuItemCount( HMENU );void CreateMenuItem( intf_thread_t *, vector<MenuItemExt*> *, HMENU, char *, vlc_object_t *, int * );HMENU CreateChoicesMenu( intf_thread_t *, vector<MenuItemExt*> *, char *, vlc_object_t *, int * );void OnMenuEvent( intf_thread_t *, int );/***************************************************************************** * A small helper class which encapsulate wxMenuitem with some other useful * things. *****************************************************************************/class MenuItemExt{public: /* Constructor */ MenuItemExt( intf_thread_t *_p_intf, int _id, char *_psz_var, int _i_object_id, vlc_value_t _val, int _i_val_type ); virtual ~MenuItemExt(); static void ClearList( vector<MenuItemExt*> * ); int id; intf_thread_t *p_intf; char *psz_var; int i_val_type; int i_object_id; vlc_value_t val;private:};/* Preferences Dialog *//* Preferences Dialog */class PrefsTreeCtrl;class PrefsDialog: public CBaseWindow{public: /* Constructor */ PrefsDialog( intf_thread_t *, CBaseWindow *, HINSTANCE ); virtual ~PrefsDialog(){};protected: /* Event handlers (these functions should _not_ be virtual) */ void OnOk( void ); /*void OnCancel( UINT event ); void OnSave( UINT event ); void OnResetAll( UINT event ); void OnAdvanced( UINT event );*/ HWND save_button; HWND reset_button; HWND advanced_checkbox; HWND advanced_label; PrefsTreeCtrl *prefs_tree; virtual LRESULT WndProc( HWND, UINT, WPARAM, LPARAM );};/***************************************************************************** * A small helper function for utf8 <-> unicode conversions *****************************************************************************/#ifdef UNICODE extern wchar_t pwsz_mbtow_wince[2048]; extern char psz_wtomb_wince[2048]; static inline wchar_t *_FROMMB( const char *psz_in ) { mbstowcs( pwsz_mbtow_wince, psz_in, 2048 ); pwsz_mbtow_wince[2048-1] = 0; return pwsz_mbtow_wince; } static inline char *_TOMB( const wchar_t *pwsz_in ) { wcstombs( psz_wtomb_wince, pwsz_in, 2048 ); psz_wtomb_wince[2048-1] = 0; return psz_wtomb_wince; }#else# define _FROMMB(a) a# define _TOMB(a) a#endif/***************************************************************************** * Misc definitions (mainly from aygshell.h) *****************************************************************************/#define _WIN32_IE 0x0500#define SHFS_SHOWSIPBUTTON 0x0004#define SHFS_HIDESIPBUTTON 0x0008#define SHIDIM_FLAGS 0x0001#define SHIDIF_DONEBUTTON 0x0001#define SHIDIF_SIPDOWN 0x0008#define SHIDIF_FULLSCREENNOMENUBAR 0x0010#define SHCMBF_HMENU 0x0010#define SHCMBF_EMPTYBAR 0x0001#define GN_CONTEXTMENU 1000#define SHRG_RETURNCMD 0x0001#define SHRG_NOTIFYPARENT 0x0002#define SHCMBM_GETSUBMENU (WM_USER + 401)#define SHCMBM_GETMENU (WM_USER + 402)#ifndef TBSTYLE_NO_DROPDOWN_ARROW#define TBSTYLE_NO_DROPDOWN_ARROW 0x0080#endif#define lstrlenW wcslen#define SHGetMenu(hwnd) \ (HMENU)SendMessage((hwnd), SHCMBM_GETMENU, (WPARAM)0, (LPARAM)0)#define TrackPopupMenu(hm,u,x,y,r,hw,p) \ TrackPopupMenuEx((hm),(u),(x),(y),(hw),0)extern "C" { typedef struct tagSHMENUBARINFO { DWORD cbSize; HWND hwndParent; DWORD dwFlags; UINT nToolBarId; HINSTANCE hInstRes; int nBmpId; int cBmpImages; HWND hwndMB; COLORREF clrBk; } SHMENUBARINFO, *PSHMENUBARINFO; BOOL SHCreateMenuBar( SHMENUBARINFO *pmbi ); BOOL SHFullScreen(HWND hwndRequester, DWORD dwState); typedef struct tagSHINITDLGINFO { DWORD dwMask; HWND hDlg; DWORD dwFlags; } SHINITDLGINFO, *PSHINITDLGINFO; BOOL SHInitDialog(PSHINITDLGINFO pshidi); typedef struct tagNMRGINFO { NMHDR hdr; POINT ptAction; DWORD dwItemSpec; } NMRGINFO, *PNMRGINFO; BOOL WINAPI CommandBar_InsertMenubarEx(HWND, HINSTANCE, LPTSTR, WORD); typedef struct tagSHRGI { DWORD cbSize; HWND hwndClient; POINT ptDown; DWORD dwFlags; } SHRGINFO, *PSHRGINFO; DWORD SHRecognizeGesture(SHRGINFO *shrg); typedef enum tagSIPSTATE { SIP_UP = 0, SIP_DOWN, SIP_FORCEDOWN, SIP_UNCHANGED, SIP_INPUTDIALOG, } SIPSTATE; BOOL SHSipPreference(HWND, SIPSTATE); BOOL SHSipInfo(UINT, UINT, PVOID, UINT); typedef struct { DWORD cbSize; DWORD fdwFlags; RECT rcVisibleDesktop; RECT rcSipRect; DWORD dwImDataSize; VOID *pvImData; } SIPINFO;}#if defined( WIN32 ) && !defined( UNDER_CE )# define SHFullScreen(a,b)# define SHInitDialog(a)# define SHCreateMenuBar(a) 1# define SHRecognizeGesture(a) 0# define SHSipPreference(a,b)# define SHSipInfo(a,b,c,d) 0#endif#endif //WINCE_RESOURCE#define IDD_ABOUT 101#define IDI_ICON1 102#define IDB_BITMAP1 103#define IDB_BITMAP2 111#define IDR_MENUBAR1 113#define IDD_FILEINFO 118#define IDD_DUMMY 118#define IDD_MESSAGES 119#define IDR_MENUBAR 120#define IDR_MENUBAR2 121#define IDD_PLAYLIST 122#define IDB_BITMAP3 123#define IDD_ITEMINFO 124#define IDCLEAR 1001#define IDSAVEAS 1002#define ID_FILE 40028#define ID_VIEW 40030#define ID_SETTINGS 40032#define ID_AUDIO 40034#define ID_EMPTY 40034#define ID_VIDEO 40036#define ID_NAVIGATION 40038#define IDM_FILE 40042#define IDM_VIEW 40044#define IDM_SETTINGS 40046#define IDM_AUDIO 40048#define IDM_VIDEO 40050#define IDM_NAVIGATION 40053#define ID_FILE_QUICKOPEN 40057#define ID_FILE_OPENFILE 40058#define ID_FILE_OPENDIR 40059#define ID_FILE_OPENNET 40060#define ID_FILE_EXIT 40061#define ID_VIEW_PLAYLIST 40063#define ID_VIEW_MESSAGES 40064#define ID_VIEW_MEDIAINFO 40065#define ID_VIEW_STREAMINFO 40066#define ID_PREFERENCES 40071#define ID_FILE_ABOUT 40069#define IDM_MANAGE 40087#define IDM_SORT 40088#define IDM_SEL 40089#define ID_SORT_AUTHOR 40091#define ID_SORT_RAUTHOR 40092#define ID_SORT_SHUFFLE 40095#define ID_SEL_INVERT 40096#define ID_SEL_DELETE 40097#define ID_SEL_SELECTALL 40098#define ID_SEL_ENABLE 40100#define ID_SEL_DISABLE 40101#define ID_SORT_TITLE 40102#define ID_SORT_RTITLE 40103#define ID_MANAGE_ADDFILE 40104#define ID_MANAGE_ADDDIRECTORY 40105#define ID_MANAGE_ADDMRL 40106#define ID_MANAGE_OPENPL 40107#define ID_MANAGE_SAVEPL 40108#define StopStream_Event 57601#define PlayStream_Event 57602#define PrevStream_Event 57603#define NextStream_Event 57604#define SlowStream_Event 57605#define FastStream_Event 57606
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -