[xiph-commits] r8074 - in trunk/oggdsf: docs src/lib/plugin/axAnxOggPlayer

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Sun Oct 24 00:08:19 PDT 2004


Author: illiminable
Date: 2004-10-24 00:08:18 -0700 (Sun, 24 Oct 2004)
New Revision: 8074

Modified:
   trunk/oggdsf/docs/activeX.txt
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.aps
   trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc
Log:
* Add a button to the control
* Add a function on the dialog to accept a browser instance.

Modified: trunk/oggdsf/docs/activeX.txt
===================================================================
--- trunk/oggdsf/docs/activeX.txt	2004-10-24 06:50:59 UTC (rev 8073)
+++ trunk/oggdsf/docs/activeX.txt	2004-10-24 07:08:18 UTC (rev 8074)
@@ -36,3 +36,32 @@
 At minimum add the following code after the autogenerated code...
   mDialog.Create(IDD_DIALOG1, this);
   mDialog.ShowWindow(TRUE);
+
+Go back to resource view.. open the dialog.
+
+Add a button.
+Change the caption to play.
+Double click the button... a new method should be generated.
+Check the message map to ensure the following has been added.
+ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
+If it hasn't add it manually.
+
+
+Grabbing a browser instance...
+============================
+
+In ControlDialog.h
+Manually add the following public function prototype
+void setBrowser(IWebBrowser2* inBrowser);
+
+Manually add the following protected variable.
+IWebBrowser2* mBrowser;
+In the constructor... initialise to NULL.
+
+Manually implement a function for setBrowser in ControlDialog.cpp, which assingsg inBrowser to mBrowser.
+
+
+
+
+
+

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp	2004-10-24 06:50:59 UTC (rev 8073)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.cpp	2004-10-24 07:08:18 UTC (rev 8074)
@@ -4,6 +4,7 @@
 #include "stdafx.h"
 #include "axAnxOggPlayer.h"
 #include "ControlDialog.h"
+#include ".\controldialog.h"
 
 
 // CControlDialog dialog
@@ -11,6 +12,7 @@
 IMPLEMENT_DYNAMIC(CControlDialog, CDialog)
 CControlDialog::CControlDialog(CWnd* pParent /*=NULL*/)
 	: CDialog(CControlDialog::IDD, pParent)
+	, mBrowser(NULL)
 {
 }
 
@@ -25,7 +27,20 @@
 
 
 BEGIN_MESSAGE_MAP(CControlDialog, CDialog)
+	ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
 END_MESSAGE_MAP()
 
 
 // CControlDialog message handlers
+
+void CControlDialog::OnBnClickedButton1()
+{
+	//PLay button.
+	// TODO: Add your control notification handler code here
+
+}
+
+void CControlDialog::setBrowser(IWebBrowser2* inBrowser) {
+	mBrowser = inBrowser;
+
+}

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h	2004-10-24 06:50:59 UTC (rev 8073)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/ControlDialog.h	2004-10-24 07:08:18 UTC (rev 8074)
@@ -16,6 +16,10 @@
 
 protected:
 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
+	IWebBrowser2* mBrowser;
+	DECLARE_MESSAGE_MAP()
+public:
+	afx_msg void OnBnClickedButton1();
 
-	DECLARE_MESSAGE_MAP()
+	void setBrowser(IWebBrowser2* inBrowser);
 };

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h	2004-10-24 06:50:59 UTC (rev 8073)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/Resource.h	2004-10-24 07:08:18 UTC (rev 8074)
@@ -10,6 +10,7 @@
 #define IDS_AXANXOGGPLAYER_PPG_CAPTION  200
 #define IDD_PROPPAGE_AXANXOGGPLAYER     200
 #define IDD_DIALOG1                     201
+#define IDC_BUTTON1                     201
 
 // Next default values for new objects
 // 
@@ -17,7 +18,7 @@
 #ifndef APSTUDIO_READONLY_SYMBOLS
 #define _APS_NEXT_RESOURCE_VALUE        202
 #define _APS_NEXT_COMMAND_VALUE         32768
-#define _APS_NEXT_CONTROL_VALUE         201
+#define _APS_NEXT_CONTROL_VALUE         202
 #define _APS_NEXT_SYMED_VALUE           101
 #endif
 #endif

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.aps
===================================================================
(Binary files differ)

Modified: trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc
===================================================================
--- trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc	2004-10-24 06:50:59 UTC (rev 8073)
+++ trunk/oggdsf/src/lib/plugin/axAnxOggPlayer/axAnxOggPlayer.rc	2004-10-24 07:08:18 UTC (rev 8074)
@@ -127,12 +127,13 @@
                     IDC_STATIC,7,25,229,16
 END
 
-IDD_DIALOG1 DIALOGEX 0, 0, 356, 265
+IDD_DIALOG1 DIALOGEX 0, 0, 412, 315
 STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD | WS_BORDER | 
     WS_SYSMENU
 FONT 8, "MS Shell Dlg", 400, 0, 0x1
 BEGIN
-    LTEXT           "Static",IDC_STATIC,27,20,80,18
+    LTEXT           "Static",IDC_STATIC,131,107,80,18
+    PUSHBUTTON      "Play",IDC_BUTTON1,7,290,59,18
 END
 
 
@@ -163,9 +164,9 @@
     IDD_DIALOG1, DIALOG
     BEGIN
         LEFTMARGIN, 7
-        RIGHTMARGIN, 349
+        RIGHTMARGIN, 405
         TOPMARGIN, 7
-        BOTTOMMARGIN, 258
+        BOTTOMMARGIN, 308
     END
 END
 #endif    // APSTUDIO_INVOKED



More information about the commits mailing list