- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 子控件相对于父窗口的位置
GetWindowRect(不同于getClientRect,这个肯定获得top==0,left==0) 函数功能:该函数返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。 BOOL CNeicunDlg::OnInitDialog() { CDial
2011-07-12 22:46:41 2526
原创 获得系统时间
GetSystemTime( LPSYSTEMTIME lpSystemTime );这个是使用格林威治时间,要加上时区计算也可以直接使用GetLocalTime(```); 获得时间差GetTickCountDWORD dwStart = GetTickCount();// Stop if this has taken too longif( GetTickCou
2011-07-10 21:53:04 325
原创 CListCtrl
m_listUsers.InsertItem(nUserCount,curUser.strName,NULL); CString s; s.Format("%d",processListStr.cntThreads); m_listUsers.SetItemText(i,1,s)
2011-07-10 21:44:33 280
原创 vector删除元素 演示
vector v; for(int i=0;i { v.push_back(i); } v.erase( (vector ::iterator)&v[5] ); //强转,也可以使用v.begin构造迭代器,然后+5. for(int i2=0;i2 { printf("%d\n",v.at(i2)); }
2011-07-10 15:58:30 333
原创 MFC创建,销毁,打开模式对话框,关闭模式对话框等函数调用顺序
MFC应用程序创建窗口的过程1.PreCreateWindow() 该函数是一个重载函数,在窗口被创建前,可以在该重载函数中改变创建参数 (可以设置窗口风格等等)2.PreSubclassWindow() 这也是一个重载函数,允许首先子分类一个窗口3.OnGet
2011-07-08 22:35:11 6104
原创 编译选项
VC无法DEBUG了,加断点后出现One or more breakpoints cannot be set ...... project->setting->c/c++-general->debug info->program databse for edit and cont
2011-07-07 13:58:47 433
作业抄袭检测器源码
2012-04-16
仿win7平台扫雷源代码
2011-03-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人