11 2013 档案

摘要:inline CString GetAppPath(){ HMODULE hModule = GetModuleHandle(NULL); ASSERT(hModule); TCHAR tcPath[_MAX_PATH]; ZeroMemory(tcPath, sizeof(TCHAR) * _MAX_PATH); DWORD dwRet = GetModuleFileName(hModule, tcPath, _MAX_PATH); if(dwRet == 0) return _T(""); CString strAppPath = tcPath; int pos = s 阅读全文
posted @ 2013-11-30 13:59 高_山_流_水 阅读(230) 评论(0) 推荐(0) 编辑
摘要:// SheetDlg.cpp : implementation file//#include "stdafx.h"#include "LEDConfig.h"#include "SheetDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#endif// CSheetDlgBOOL beProperty=FALSE;IMPLEMENT_DYNAMIC(CSheetDlg, CPropertySheet)#define IDLG_CHINESE 0xF1#define IDLG_ENGLISH 0xF2C 阅读全文
posted @ 2013-11-30 12:00 高_山_流_水 阅读(244) 评论(0) 推荐(0) 编辑
摘要:#pragma once#include "FunCardPage.h"#include "ReceiveCardPage.h"#include "SendCardPage.h"// CSheetDlgclass CSheetDlg : public CPropertySheet{ DECLARE_DYNAMIC(CSheetDlg)protected: CFunCardPage m_multiFunctionCardPage; CReceiveCardPage m_receiveCardPage; CSendCardPage m_s 阅读全文
posted @ 2013-11-30 11:59 高_山_流_水 阅读(68) 评论(0) 推荐(0) 编辑
摘要:////////添加Columvoid CLEDScreenDecDlg1::AddListColumn(){ CDC *pDC = GetDC(); CStringArray strArray; strArray.Add(_T("发送卡号")); //0 strArray.Add(_T("端口号")); //1 strArray.Add(_T("接收卡号")); //2 strArray.Add(_T("接收卡温度")); //3 strArray.Add(_T("湿度")); //4 str 阅读全文
posted @ 2013-11-30 11:56 高_山_流_水 阅读(258) 评论(0) 推荐(0) 编辑
摘要://ExportDefine.h//================================================================================// Description:// import MFC extend class and data define.//================================================================================////////////////////////////////////////////////////////... 阅读全文
posted @ 2013-11-30 11:50 高_山_流_水 阅读(58) 评论(0) 推荐(0) 编辑
摘要:#define LINE_BYTES(w, b) (((w) * (b) + 31)/32*4) case WM_PAINT: { hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code here... BITMAPINFO bmpinfo = {0}; bmpinfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); //必须,初始化bmpinfo.bmiHeader中的第一个参数 HBITMAP hBitmap = LoadBitmap(hInst, MAKEINTRESOUR.. 阅读全文
posted @ 2013-11-30 11:34 高_山_流_水 阅读(613) 评论(0) 推荐(0) 编辑
摘要://SYSTEMTIME向ULONGLONG转换inline void SystemTimeToULongLong(SYSTEMTIME *pSystime, ULONGLONG *puLongLong){ FILETIME fTime; SystemTimeToFileTime(pSystime, &fTime); FileTimeToULongLong(&fTime, puLongLong);}//ULONGLONG向SYSTEMTIME转换inline void ULongLongToSystemTime(ULONGLONG *puLongLong, SYSTEMTIME 阅读全文
posted @ 2013-11-30 11:31 高_山_流_水 阅读(643) 评论(0) 推荐(0) 编辑
摘要:BITMAP bitmap; GetObject(hBitmap, sizeof(BITMAP), &bitmap); DWORD dwSize = bitmap.bmHeight * bitmap.bmWidthBytes; unsigned char* pBits = new unsigned char[dwSize]; LONG dl = GetBitmapBits(hBitmap, dwSize, pBits); 阅读全文
posted @ 2013-11-30 11:30 高_山_流_水 阅读(201) 评论(0) 推荐(0) 编辑
摘要:inline DWORD ARGB_2_COLORREF(DWORD argb){ BYTE r = BYTE((argb&0x00ff0000)>>16); BYTE g = BYTE((argb&0x0000ff00)>>8); BYTE b = BYTE((argb&0x000000ff)); return RGB(r, g, b);}inline DWORD COLORREF_2_ARGB(DWORD colorref){ BYTE r = BYTE(GetRValue(colorref)); BYTE g = BYTE(GetGValu 阅读全文
posted @ 2013-11-30 11:27 高_山_流_水 阅读(500) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示