Commit 3ef61614d754f6db1ab32d9c458fabceca998a7e

Authored by Echo
1 parent 0890f6d9

去掉没用的button ICON

@@ -65,7 +65,7 @@ END @@ -65,7 +65,7 @@ END
65 65
66 // Icon with lowest ID value placed first to ensure application icon 66 // Icon with lowest ID value placed first to ensure application icon
67 // remains consistent on all systems. 67 // remains consistent on all systems.
68 -IDR_MAINFRAME ICON DISCARDABLE "res\\idr_main.ico" 68 +//IDR_MAINFRAME ICON DISCARDABLE "res\\idr_main.ico"
69 69
70 ///////////////////////////////////////////////////////////////////////////// 70 /////////////////////////////////////////////////////////////////////////////
71 // 71 //
@@ -385,7 +385,7 @@ BEGIN @@ -385,7 +385,7 @@ BEGIN
385 LTEXT "SPMeta DLL 1345.01",IDC_SPMETADLL_VERSION,42,40,104,8 385 LTEXT "SPMeta DLL 1345.01",IDC_SPMETADLL_VERSION,42,40,104,8
386 LTEXT "Copyright(C) 2004-2010 MediaTek Inc. All rights reserved.", 386 LTEXT "Copyright(C) 2004-2010 MediaTek Inc. All rights reserved.",
387 IDC_STATIC,42,58,170,8 387 IDC_STATIC,42,58,170,8
388 - ICON IDR_MAINFRAME,IDC_STATIC,13,12,20,20 388 + // ICON IDR_MAINFRAME,IDC_STATIC,13,12,20,20
389 END 389 END
390 390
391 IDD_IDENTIFY_VERIFY_DIALOG DIALOG DISCARDABLE 0, 0, 187, 61 391 IDD_IDENTIFY_VERIFY_DIALOG DIALOG DISCARDABLE 0, 0, 187, 61
@@ -99,7 +99,7 @@ CSNWriterDlg::CSNWriterDlg(CWnd* pParent /*=NULL*/) @@ -99,7 +99,7 @@ CSNWriterDlg::CSNWriterDlg(CWnd* pParent /*=NULL*/)
99 mytimecount = 0; 99 mytimecount = 0;
100 //}}AFX_DATA_INIT 100 //}}AFX_DATA_INIT
101 // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 101 // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
102 - m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); 102 + // m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
103 } 103 }
104 104
105 void CSNWriterDlg::DoDataExchange(CDataExchange* pDX) 105 void CSNWriterDlg::DoDataExchange(CDataExchange* pDX)
@@ -200,8 +200,8 @@ BOOL CSNWriterDlg::OnInitDialog() @@ -200,8 +200,8 @@ BOOL CSNWriterDlg::OnInitDialog()
200 200
201 // Set the icon for this dialog. The framework does this automatically 201 // Set the icon for this dialog. The framework does this automatically
202 // when the application's main window is not a dialog 202 // when the application's main window is not a dialog
203 - SetIcon(m_hIcon, TRUE); // Set big icon  
204 - SetIcon(m_hIcon, FALSE); // Set small icon 203 + // SetIcon(m_hIcon, TRUE); // Set big icon
  204 + //SetIcon(m_hIcon, FALSE); // Set small icon
205 205
206 SetWindowText(g_strToolVersion); 206 SetWindowText(g_strToolVersion);
207 207
@@ -568,7 +568,7 @@ void CSNWriterDlg::OnPaint() @@ -568,7 +568,7 @@ void CSNWriterDlg::OnPaint()
568 int y = (rect.Height() - cyIcon + 1) / 2; 568 int y = (rect.Height() - cyIcon + 1) / 2;
569 569
570 // Draw the icon 570 // Draw the icon
571 - dc.DrawIcon(x, y, m_hIcon); 571 + // dc.DrawIcon(x, y, m_hIcon);
572 } 572 }
573 else 573 else
574 { 574 {
@@ -592,10 +592,13 @@ void CSNWriterDlg::ShowTemperatureOnUI() @@ -592,10 +592,13 @@ void CSNWriterDlg::ShowTemperatureOnUI()
592 592
593 // The system calls this to obtain the cursor to display while the user drags 593 // The system calls this to obtain the cursor to display while the user drags
594 // the minimized window. 594 // the minimized window.
  595 +
  596 +#if 0
595 HCURSOR CSNWriterDlg::OnQueryDragIcon() 597 HCURSOR CSNWriterDlg::OnQueryDragIcon()
596 { 598 {
597 return (HCURSOR) m_hIcon; 599 return (HCURSOR) m_hIcon;
598 } 600 }
  601 +#endif
599 602
600 void CSNWriterDlg::OnBtnStart() 603 void CSNWriterDlg::OnBtnStart()
601 { 604 {
@@ -56,12 +56,12 @@ public: @@ -56,12 +56,12 @@ public:
56 56
57 // Implementation 57 // Implementation
58 protected: 58 protected:
59 - HICON m_hIcon; 59 + //HICON m_hIcon;
60 // Generated message map functions 60 // Generated message map functions
61 //{{AFX_MSG(CSNWriterDlg) 61 //{{AFX_MSG(CSNWriterDlg)
62 virtual BOOL OnInitDialog(); 62 virtual BOOL OnInitDialog();
63 afx_msg void OnPaint(); 63 afx_msg void OnPaint();
64 - afx_msg HCURSOR OnQueryDragIcon(); 64 + //afx_msg HCURSOR OnQueryDragIcon();
65 afx_msg void OnBtnStart(); 65 afx_msg void OnBtnStart();
66 afx_msg void OnBtnQuit(); 66 afx_msg void OnBtnQuit();
67 afx_msg void OnBtnSysconfig(); 67 afx_msg void OnBtnSysconfig();
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 // 4 //
5 #define IDS_ABOUTBOX 101 5 #define IDS_ABOUTBOX 101
6 #define IDD_SNWRITER_DIALOG 102 6 #define IDD_SNWRITER_DIALOG 102
7 -#define IDR_MAINFRAME 128 7 +//#define IDR_MAINFRAME 128
8 #define IDD_SCANDATA_DIALOG 129 8 #define IDD_SCANDATA_DIALOG 129
9 #define IDD_SYSTEM_CONFIG_DIALOG 130 9 #define IDD_SYSTEM_CONFIG_DIALOG 130
10 #define IDB_BITMAP_FAIL 131 10 #define IDB_BITMAP_FAIL 131
Please register or login to post a comment