摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using ... 阅读全文
摘要:
-- =============================================-- Author:tanghong-- Create date: 20130628154520-- =============================================CREATE PROCEDURE [dbo].[PersonalPrizeC... 阅读全文
摘要:
BOOL CManageDataBase::GetDepTreeAllSons( int rootItem ) { CADORecordset Rst(&m_DataBase); BOOL bResult = FALSE; CString strSQL; int curItem = rootItem; int level = 0; try { strSQL.Format(_T("delete from Temp_DepSons")); if(!m_DataBase.Execute((LPCTSTR)strSQL)) throw IDS_PROC_ERROR; str 阅读全文
摘要:
今天客户需要在软件上需要添加一个自己公司的Logo,要求使用镂空透明的形式展现,本来以为很简单的工作没想到在MFC下这么复杂。Logo为BMP格式,白色背景。 以为和在按钮上显示控件差不多,先导入BITMAP资源,比如叫IDB_BITMAP1,按钮名比如叫IDC_BUTTON1,按钮上贴图的代码:CBitmap m_bmp;m_bmp.LoadBitmap(IDB_BITMAP1);HBITMAP hBitmap = (HBITMAP)m_bmp.GetSafeHandle(); ((CButton*)GetDlgItem(IDC_BUTTON1))->SetBitmap(hBitmap 阅读全文