- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 浏览文件夹
int CALLBACK BrowseCallBackProc(HWND hwnd, UINT uMsg, LPARAM lParam,LPARAM lpData) { if(uMsg==BFFM_SELCHANGED||uMsg==BFFM_INITIALIZED) { if(uMsg==BFFM_INITIALIZED) { ::SendMessage(hwnd,BFFM_SETS
2014-12-05 20:09:54 545
转载 串口枚举
int Enumserialport(void) { HKEY hKey; LPCTSTR data_Set="HARDWARE\\DEVICEMAP\\SERIALCOMM\\"; long ret0 = (::RegOpenKeyEx(HKEY_LOCAL_MACHINE, data_Set, 0, KEY_READ, &hKey)); if(ret0
2013-09-12 11:49:08 757
转载 xml文件读写
//生成xml文件 _di_IXMLDocument XML = NewXMLDocument(); XML->Active=true; XML->Options<<doNodeAutoIndent; XML->Encoding = "GB2312"; XML->StandAlone="yes"; XML->AddChild("EXCERA"); _di_IXMLNod
2013-08-17 15:11:34 1142
原创 ListBox自绘
DrawItem事件中TCanvas *pCanvas; pCanvas = ((TListBox *)Control)->Canvas; pCanvas->Brush->Color = clWhite; pCanvas->Font->Color = clBlack; pCanvas->FillRect(Rect); pCanvas->Brush->Color = T
2013-08-09 16:33:10 1026
翻译 BCB自绘菜单
1.N13AdvancedDrawItem 绘制子菜单 TRect tempRect;//临时矩形区域 TMenuItem *pItem = dynamic_cast(Sender); if(!pItem) return; AnsiString Caption = pItem->Caption; ACanvas->Brush->Color = clWhite; AC
2013-07-22 19:16:36 1598
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人