Line | |
---|
1 | //////////////////////////////////////////////////////////// |
---|
2 | // MainDialog.h : header file |
---|
3 | // |
---|
4 | // Copyright (C) Alax.Info, 2006-2008 |
---|
5 | // http://alax.info |
---|
6 | // |
---|
7 | // A permission to use the source code is granted as long as reference to |
---|
8 | // source website http://alax.info is retained. |
---|
9 | // |
---|
10 | // Created by Roman Ryltsov roman@alax.info |
---|
11 | // |
---|
12 | // $Id: MainDialog.h 14 2008-11-19 09:23:16Z alax $ |
---|
13 | |
---|
14 | #pragma once |
---|
15 | |
---|
16 | #include <dshow.h> |
---|
17 | #include <d3d9.h> |
---|
18 | #include <vmr9.h> |
---|
19 | |
---|
20 | #pragma comment(lib, "strmiids.lib") |
---|
21 | |
---|
22 | // CMainDialog dialog |
---|
23 | class CMainDialog : public CDialog |
---|
24 | { |
---|
25 | // Construction |
---|
26 | public: |
---|
27 | CMainDialog(CWnd* pParent = NULL); // standard constructor |
---|
28 | |
---|
29 | // Dialog Data |
---|
30 | enum { IDD = IDD_MFCWINDOWLESSVIDEORENDERER01_DIALOG }; |
---|
31 | |
---|
32 | protected: |
---|
33 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
---|
34 | |
---|
35 | // Implementation |
---|
36 | public: |
---|
37 | |
---|
38 | class CGraph |
---|
39 | { |
---|
40 | public: |
---|
41 | CComPtr<IGraphBuilder> m_pGraphBuilder; |
---|
42 | CComPtr<IVMRWindowlessControl9> m_pVmrWindowlessControl9; |
---|
43 | |
---|
44 | public: |
---|
45 | // CGraph |
---|
46 | }; |
---|
47 | |
---|
48 | protected: |
---|
49 | HICON m_hIcon; |
---|
50 | CGraph m_pGraphs[2]; |
---|
51 | |
---|
52 | // Generated message map functions |
---|
53 | afx_msg BOOL OnInitDialog(); |
---|
54 | afx_msg VOID OnDestroy(); |
---|
55 | afx_msg void OnPaint(); |
---|
56 | afx_msg HCURSOR OnQueryDragIcon(); |
---|
57 | afx_msg void OnBnClickedStart(); |
---|
58 | afx_msg void OnBnClickedStop(); |
---|
59 | |
---|
60 | DECLARE_MESSAGE_MAP() |
---|
61 | |
---|
62 | public: |
---|
63 | VOID CreateGraph(CGraph& Graph, INT nControlIdentifier); |
---|
64 | VOID DestroyGraph(CGraph& Graph); |
---|
65 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.