自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (2)
  • 收藏
  • 关注

原创 MFC 获取系统时间 和设置时间

1 获取时间格式 2013-03-04   07:08CString strDate,strTime;CTime tm = CTime::GetCurrentTime();strDate = tm.Format(L"%Y-%m-%d");strTime = tm.Format(L"%H:%m");2 获取时间格式 2013-3-4  7:8SYSTEMTIME

2013-04-22 16:49:40 4957

原创 MFC GDI在背景上写字 (设置字体 范围 颜色 )

CFont myFont;myFont.CreateFont(35,0,0,0,100,FALSE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,        CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,FF_SWISS, _T("Arial"));//设置字体CFont *poldFont=dc.SelectObject

2013-04-22 16:27:07 2050

原创 MFC 按字节读取字符串 添加换行符 实现static text自动换行

void FaultDialog::CutStringc(CString str){int len;                                  //多少字节换行len = str.GetLength();CString temp_str;temp_str="";int templen = 0;for(int i = 0;i {temp_s

2013-04-22 16:24:05 4617 1

原创 MFC 修改控件的属性

1.重载OnCtlColor()函数2.在函数里面添加 if (pWnd->GetDlgCtrlID() == IDC_STATIC_FAULTRE) {pDC->SetBkColor(RGB(0, 0, 0));   //背景色         pDC->SetTextColor(RGB(255, 0, 0));  字体颜色HBRUSH B = CreateSolidBr

2013-04-22 16:19:03 922

原创 MFC中全屏窗口的方法

在OnInitDialog()函数你添加ModifyStyleEx(0, WS_EX_NODRAG);int iFullWidth = GetSystemMetrics(SM_CXSCREEN); int iFullHeight = GetSystemMetrics(SM_CYSCREEN); ::SetWindowPos(this->m_hWnd, HWND_TOPMOS

2013-04-22 16:15:10 722

原创 C# 在字符串中添加“\r”换行符 实现lable自动换行

按字节截取字符串,并在规定位置添加换行符【\r】,解决lable自动换行问题public static string CutString(string inputString)        {            ASCIIEncoding ascii = new ASCIIEncoding();            int len = 30;

2013-03-22 11:53:05 4343

原创 C# 设置CE系统的时间

[StructLayout(LayoutKind.Sequential)]        public struct SystemTime        {            public ushort wYear;            public ushort wMonth;            public ushort wDayOfWeek;

2013-03-22 11:48:04 611

原创 C# 用GDI在图片上写字实现lable透明背景

Bitmap bmp = new Bitmap(pictureBox1.Image);//加载位图 pictureBox1.Image            Graphics g = Graphics.FromImage(bmp);            Font font = new Font("Tahoma", 25, FontStyle.Bold);//设置字体

2013-03-22 11:42:58 1137

原创 C# 在picturebox控件里动态加载资源里面的图片

该方法必须先把图片加入到资源resources里:动态加载bmp格式的图片private System.Drawing.Bitmap GetResourceBitmap(string strImageName)        {            object obj = Properties.Resources.ResourceManager.Ge

2013-03-22 11:36:05 6901

wince 6.0 安装过程

wince 6.0 安装的全过程 以及安装wince6.0时 对其环境的搭建……

2013-05-03

截图软件 C++

在网上收集的一个截图软件,类似于扣扣截图。

2012-12-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除