Author: wyoung
Date: Wed Mar 28 17:32:34 2007
New Revision: 1470
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1470&view=rev
Log:
Removed icon stuff from MFC example: it never really uses it, and we'd
be content with the default anyway. It's just an example...
Removed:
trunk/examples/vstudio/mfc/res/
Modified:
trunk/examples/vstudio/mfc/mfc.rc
trunk/examples/vstudio/mfc/mfc_dlg.cpp
trunk/examples/vstudio/mfc/mfc_dlg.h
trunk/examples/vstudio/mfc/resource.h
Modified: trunk/examples/vstudio/mfc/mfc.rc
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/vstudio/mfc/mfc.rc?rev=1470&r1=1469&r2=1470&view=diff
==============================================================================
--- trunk/examples/vstudio/mfc/mfc.rc (original)
+++ trunk/examples/vstudio/mfc/mfc.rc Wed Mar 28 17:32:34 2007
@@ -48,7 +48,6 @@
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
- "#include ""res\\mfc.rc2"" // non-Microsoft Visual C++ edited
resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\r\n"
"\0"
@@ -56,15 +55,6 @@
#endif // APSTUDIO_INVOKED
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDR_MAINFRAME ICON "res\\mfc.ico"
/////////////////////////////////////////////////////////////////////////////
//
@@ -137,7 +127,6 @@
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#pragma code_page(1252)
-#include "res\mfc.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif
Modified: trunk/examples/vstudio/mfc/mfc_dlg.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/vstudio/mfc/mfc_dlg.cpp?rev=1470&r1=1469&r2=1470&view=diff
==============================================================================
--- trunk/examples/vstudio/mfc/mfc_dlg.cpp (original)
+++ trunk/examples/vstudio/mfc/mfc_dlg.cpp Wed Mar 28 17:32:34 2007
@@ -39,8 +39,7 @@
//// ctor //////////////////////////////////////////////////////////////
CExampleDlg::CExampleDlg(CWnd* pParent) :
-CDialog(CExampleDlg::IDD, pParent),
-hIcon_(AfxGetApp()->LoadIcon(IDR_MAINFRAME))
+CDialog(CExampleDlg::IDD, pParent)
{
// Load default input values from registry, if we can
HKEY key = OpenSettingsRegistryKey();
@@ -151,17 +150,3 @@
}
}
}
-
-
-//// OnInitDialog //////////////////////////////////////////////////////
-
-BOOL
-CExampleDlg::OnInitDialog()
-{
- CDialog::OnInitDialog();
-
- SetIcon(hIcon_, TRUE);
- SetIcon(hIcon_, FALSE);
-
- return TRUE;
-}
Modified: trunk/examples/vstudio/mfc/mfc_dlg.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/vstudio/mfc/mfc_dlg.h?rev=1470&r1=1469&r2=1470&view=diff
==============================================================================
--- trunk/examples/vstudio/mfc/mfc_dlg.h (original)
+++ trunk/examples/vstudio/mfc/mfc_dlg.h Wed Mar 28 17:32:34 2007
@@ -46,14 +46,9 @@
protected:
//// Internal support functions
virtual void DoDataExchange(CDataExchange* pDX);
- virtual BOOL OnInitDialog();
void AddMessage(LPCTSTR pcMessage);
//// Message map
afx_msg void OnBnClickedConnectButton();
DECLARE_MESSAGE_MAP()
-
-private:
- //// Internal data
- HICON hIcon_;
};
Modified: trunk/examples/vstudio/mfc/resource.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/vstudio/mfc/resource.h?rev=1470&r1=1469&r2=1470&view=diff
==============================================================================
--- trunk/examples/vstudio/mfc/resource.h (original)
+++ trunk/examples/vstudio/mfc/resource.h Wed Mar 28 17:32:34 2007
@@ -4,7 +4,6 @@
//
#define IDD_MFC_DIALOG 102
#define IDP_SOCKETS_INIT_FAILED 103
-#define IDR_MAINFRAME 128
#define IDC_SERVER_EDIT 1000
#define IDC_PASSWORD_EDIT 1001
#define IDC_USER_EDIT 1002
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits