01 2012 档案

摘要:ipaddressctrl.hpp#ifndef ipaddressctrlH#define ipaddressctrlHnamespace NSTS {#include <windows.h>#include <commctrl.h>#include <string.h>//#include <winsock2.h>#pragma comment (lib, "ws2_32.lib")#pragma comment (lib, "comctl32.lib")class CIpAddressCtrl {#d 阅读全文
posted @ 2012-01-31 00:54 夜雨無聲 阅读(1929) 评论(0) 推荐(0) 编辑
摘要:SHIT--Usage:NSTS::CProgressBar g_pb;NSTS::CProgressBar g_pb2;WM_INITDIALOG:RECT rcpb = { 0, 0, 100, 20 };assert (g_pb.Init (hInst, hwndDlg, &rcpb));assert (g_pb2.Attach (GetDlgItem (hwndDlg, IDC_PROGRESS1)));assert (g_pb2.SetStep (5));// 背景颜色assert (g_pb2.SetBkColor (RGB (128, 128, 255)));// 进度条 阅读全文
posted @ 2012-01-28 01:47 夜雨無聲 阅读(740) 评论(0) 推荐(0) 编辑
摘要:Tooltips.hpp#ifndef tooltipsH#define tooltipsH#include <commctrl.h>#include <windows.h>namespace NSTS {struct ToolTipsItem{ HWND hwnd; TCHAR* pszTip;};class CToolTips {public: CToolTips (void) { m_hSelf = NULL; m_hInst = NULL; }; ~CToolTips (void) { Destroy ... 阅读全文
posted @ 2012-01-18 15:48 夜雨無聲 阅读(598) 评论(0) 推荐(0) 编辑
摘要:toolbar.hpp#ifndef toolbarH#define toolbarH#include <commctrl.h>#include <windows.h>#include <vector>using std::vector;namespace NSTS {struct ToolBarButton { UINT uCmdId; int iIconSize; int iColor; UINT uDefaultIconId; UINT uHotIconId; UINT uDisableIconId;... 阅读全文
posted @ 2012-01-18 14:58 夜雨無聲 阅读(435) 评论(0) 推荐(0) 编辑
摘要:statusbar.hpp#ifndef statusbarH#define statusbarH#include <Windows.h>#include <list>namespace NSTS {class CStatusBar {public: CStatusBar (void); ~CStatusBar (void); public: bool Init (HWND hParent, int iSize, int agiParts[], HINSTANCE hInst); void Destroy (void); bool ... 阅读全文
posted @ 2012-01-09 15:54 夜雨無聲 阅读(414) 评论(0) 推荐(0) 编辑