#include <windows.h> const char g_szClassName[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switc ...
SetLimitText(UINT nMax ) //设置文本限制字符数 参数为nMax为控件可接受的文本最大字节数 GetTextLength() //获得文本长度 参考文档:http://www.blogjava.net/jasmine214--love/archive/2010/08/12/3 ...
分类:
其他好文 时间:
2017-02-24 19:22:48
阅读次数:
154
1 #include 2 #include 3 #include 4 #include 5 6 HANDLE g_hEvent; 7 UINT __stdcall ThreadProc(LPVOID); 8 int main(int argc,char* argv[]) 9 { 10 unsigne... ...
分类:
其他好文 时间:
2017-02-01 23:41:09
阅读次数:
378
1 #include 2 #include 3 #include 4 #include 5 6 int g_nCount1 = 0,g_nCount2 = 0; 7 bool g_bThread = true; 8 UINT __stdcall ThreadProc(LPVOID); 9 int m... ...
分类:
其他好文 时间:
2017-02-01 23:37:49
阅读次数:
261
1 #include 2 #include 3 #include 4 #include 5 6 int g_nTlsNum; 7 UINT __stdcall ThreadProc(LPVOID); 8 void InitialStartTime(); 9 DWORD GetUsedTime(); ... ...
分类:
其他好文 时间:
2017-02-01 23:26:06
阅读次数:
200
using System.Runtime.InteropServices;[DllImport("User32.DLL")]public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);publ ...
分类:
其他好文 时间:
2017-01-24 23:46:21
阅读次数:
285
using System.Runtime.InteropServices; using System.Diagnostics; [DllImport("User32.DLL")] public static extern int SendMessage(IntPtr hWnd, uint Msg, ...
使用的API原型是 BOOL SystemParametersinfo(UINT uiAction,UINT uiParam,PVOID pvParam,UINT fWinlni); 在C#中定义如下: 1 /// <summary> 2 /// 查询或设置系统级参数 3 /// </summary ...
1. 判断一个正整数是否为2的乘方数 数据对比(uint_16 n;) 正整数n 正整数 n 的二进制表示 正整数 (n - 1) 正整数 (n-1) 的二进制表示 n&(n - 1) 2 0000000000000010 1 0000000000000001 0000000000000000 4 ...
分类:
其他好文 时间:
2017-01-13 21:04:16
阅读次数:
175
知识点: 定时器Timer 创建定时器 销毁定时器 代码测试 一、 创建定时器 UINT SetTimer( HWND hWnd, // 指定关联定时器的窗口句柄,在MFC版将省略此参数 UINT nIDEvent, // 定时器ID UINT uElapse, // 时间间隔 单位毫... ...
分类:
编程语言 时间:
2016-12-28 18:15:40
阅读次数:
233