上一页 1 ··· 114 115 116 117 118 119 120 121 122 ··· 133 下一页
摘要: 一、QPushButton 1、设置背景色: ui->pushButton->setStyleSheet("background-color: rgb(170, 0, 255)";); 2、设置鼠标放上去的提示语 在设计师界面,设置按钮的tooltip 二、QTextEdit 1、判断是否为空 QS 阅读全文
posted @ 2016-12-28 17:16 朱小勇 阅读(6610) 评论(0) 推荐(1)
摘要: char szHostName[MAX_PATH + 1]; gethostname(szHostName, MAX_PATH); //得到计算机名 hostent *p = gethostbyname(szHostName); //从计算机名得到主机信息 char *pIP1 = inet_nto 阅读全文
posted @ 2016-12-27 20:43 朱小勇 阅读(607) 评论(0) 推荐(0)
摘要: 1、宏定义一个自定义消息 #define WM_MY WM_USER+1 2、定义一个消息响应函数 afx_msg LRESULT WM_MyMessage(WPARAM wparam, LPARAM lparam);//protect类型 3、注册消息 BEGIN_MESSAGE_MAP(CGra 阅读全文
posted @ 2016-12-27 16:35 朱小勇 阅读(624) 评论(0) 推荐(0)
摘要: 原因:MFC对象不支持多线程操作,不能供多个线程进程使用,所以尽量不要在线程里面更新界面。 解决办法: 1、将工程改为release 2、使用控件来SetWindowText 3、在线程里面发送消息 SendMessageTimeout(怎么用看另外的博客) 阅读全文
posted @ 2016-12-27 16:31 朱小勇 阅读(219) 评论(0) 推荐(0)
摘要: 1、判断某路径的文件是否存在 BOOL PathFileExists( _In_ LPCTSTR pszPath );2、CFileFind类 CFileFind finder; BOOL bWorking = finder.FindFile(_T("*.*")); while (bWorking) 阅读全文
posted @ 2016-12-27 15:14 朱小勇 阅读(129) 评论(0) 推荐(0)
摘要: RGB(255,200,200)->粉红 RGB(200,255,200)->淡绿 RGB(200,200,255)->淡蓝 RGB(200,200,200)->浅灰 阅读全文
posted @ 2016-12-26 16:28 朱小勇 阅读(609) 评论(0) 推荐(0)
摘要: 1、用记事本打开.sln,如图修改 2、用记事本打开.vcxproj文件,搜索:v140,修改为v120(有四个) 阅读全文
posted @ 2016-12-26 13:08 朱小勇 阅读(3317) 评论(0) 推荐(0)
摘要: 数据库对比。 1.Oracle:最贵,功能最多,安装最不方便,Oracle环境里的其他相关组件最多,支持平台数量一般,使用中等方便,开发中等方便,运维中等方便,不开源,速度最慢,最安全。 2.Microsoft SQL Server:中等贵,功能最少,安装中等方便,Microsoft SQL Ser 阅读全文
posted @ 2016-12-26 09:48 朱小勇 阅读(362) 评论(0) 推荐(1)
摘要: CWnd::IsZoomed() CWnd::IsIconic() 阅读全文
posted @ 2016-12-22 16:03 朱小勇 阅读(1836) 评论(0) 推荐(0)
摘要: int cx = GetSystemMetrics(SM_CXFULLSCREEN); int cy = GetSystemMetrics(SM_CYFULLSCREEN); 通过上边两个函数获取的是显示屏幕的大小,但不包括任务栏等区域。 阅读全文
posted @ 2016-12-22 15:57 朱小勇 阅读(250) 评论(0) 推荐(0)
上一页 1 ··· 114 115 116 117 118 119 120 121 122 ··· 133 下一页