TScrollInfo 结构体。在Delphi中定义在windows单元下。定义如下: tagSCROLLINFO = packed record cbSize: UINT; //结构体大小,在使用时首先要初始化 SizeOf(ScrollInfo) fMask: UIN...
分类:
其他好文 时间:
2014-09-19 23:44:36
阅读次数:
308
DrawText 函数功能:该函数在指定的矩形里写入格式化文本,根据指定的方法对文本格式化(扩展的制表符,字符对齐、折行等)。 函数原型:int DrawText(HDC hdc, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat.....
分类:
其他好文 时间:
2014-09-19 23:43:26
阅读次数:
373
SetTimer是设置定时器,每隔一段时间执行一个操作,原型如下 UINT_PTR SetTimer( HWND hWnd, // 窗口句柄 UINT_PTR nIDEvent, // 定时器ID,多个定时器时,可以通过该ID判断是哪个定时器 UINT uElapse, // 时间间隔,单位...
分类:
其他好文 时间:
2014-09-18 22:09:14
阅读次数:
162
//创建定时器函数的声明:SetTimer( hWnd: HWND; {与定时器相关联的窗口句柄} nIDEvent: UINT; {指定一个非 0 的定时器标识符} uElapse: UINT; {指定间隔时间, 单位是毫...
分类:
其他好文 时间:
2014-09-17 01:01:41
阅读次数:
234
别踩白块儿之禅模式 windows程序实现
代码如下
#include
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
int WINAPI WinMain( //程序入口,WINAPI是一种函数调用约定,用于表明如何生成在堆栈中放置调用参数的机器代码
HINSTANCE hInstance //实例句柄,标识该程序
, ...
windows 随机矩形绘制
代码如下
#include
void DrawRect (HWND hwnd);
int cxClient, cyClient;
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstan...
<fx:Declarations>
<!--将非可视元素(例如服务、值对象)放在此处-->
<mx:ArrayListid="dataList">
<fx:int>10</fx:int>
<fx:String>8</fx:String>
<fx:Number>7.5</fx:Number>
<fx:uint>17</fx:uint>
<..
分类:
其他好文 时间:
2014-09-15 19:53:20
阅读次数:
183
列表控件可以看作是功能增强的ListBox,它提供了四种风格,而且可以同时显示一列的多中属性值。MFC中使用CListCtrl类来封装列表控件的各种操作。通过调用BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT ...
分类:
编程语言 时间:
2014-09-15 14:19:18
阅读次数:
298
1 #include 2 #include 3 #include 4 #include 5 #include 6 7 class S_DES { 8 private: 9 typedef unsigned int uint; 10 typedef un...
分类:
其他好文 时间:
2014-09-10 20:51:51
阅读次数:
215
1 #include "reg52.h" 2 #include "intrins.h" 3 #define uchar unsigned char 4 #define uint unsigned int 5 6 void delay( uchar x) 7 { 8 uint y; 9...
分类:
其他好文 时间:
2014-09-10 00:12:49
阅读次数:
230