码迷,mamicode.com
首页 >  
搜索关键字:uint srcrowpitch    ( 791个结果
应用程序窗口示例
1 //Windows.h文件中包含应用程序中所需的数据类型和数据结构的定义 2 #include 3 #include 4 5 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); //窗口函数说明 6 //---...
分类:其他好文   时间:2015-08-05 20:05:46    阅读次数:150
Windows API——SHFileOperation——文件操作
1 int SHFileOperation( LPSHFILEOPSTRUCT lpFileOp); 如果执行成功返回0. 1 typedef struct _SHFILEOPSTRUCT { 2 HWND hwnd;//指向发送消息的窗口 3 UINT wFunc;//执行的操作 4 LPCTSTR pFrom;//源文件名 5 LPCTSTR pTo;//目标文件...
分类:Windows程序   时间:2015-08-03 11:34:10    阅读次数:469
Swift备忘
三大类型:结构、枚举和类。基础类型: 1.整数类型:Int8、Uint8、Int16、Uint16、Int32、Uint32、Int64、Uint64、Int、Uint 2.浮点类型:Float、Double 3.布尔类型:Bool 4.字符类型:Character复合类型: 1.元组 2.可选类型...
分类:编程语言   时间:2015-08-03 01:02:37    阅读次数:112
arm-linux-androideabi-gcc 预定义宏(编译器版本4.8)
打印方法: touch test.c arm-linux-androideabi-gcc -E -dM -c test.c >> marco_arm.txt #define __DBL_MIN_EXP__ (-1021) #define __HQ_FBIT__ 15 #define __UINT_LEAST16_MAX__ 65535 #define __ARM_SIZEOF_WCHAR_T...
分类:移动开发   时间:2015-07-31 22:02:39    阅读次数:459
最小化窗口到托盘区-VC++
1、在窗口类的.h文件中添加变量:NOTIFYICONDATApnid;2、在窗口类的.CPP文件中自定义消息:WM_MYMESSAGE3、在窗口类的初始化函数OnInitDialog中添加代码:pnid.cbSize=(DWORD)sizeof(NOTIFYICONDATA);pnid.hWnd=m_hWnd;pnid.uID=(UINT)m_hIcon;pnid.uFlags=NIF_ICON|NIF_MESSAG..
分类:编程语言   时间:2015-07-28 14:52:54    阅读次数:160
as3.0 小代码(1)------ 颜色渐变中的颜色渐变数组产生算法
//分离:如0xefebec变成[0xec,0xeb,oxef] functioncolorValTransfer(inNum:uint):Array{ if(inNum>0xffffff){ thrownewError("Function:colorValTransferparameter:inNum>>>parameter‘svaluemustbesmallerthan0xffffff"); } varoutArr=[]; outArr[0]=inNum%0..
分类:编程语言   时间:2015-07-28 14:44:38    阅读次数:189
把颜色取出来的位运算
float r = float((uint32)color&(uint32)0x000000ffU)/128.0f;float g = float((uint32)color&(uint32)0x0000ff00)/128.0f;float b = float((uint32)color&(uint...
分类:其他好文   时间:2015-07-28 14:32:28    阅读次数:79
IIC 概述之3
为了加深对I2C总线的理解,用C语言模拟IIC总线,边看源代码边读波形:如下图所示的写操作的时序图:读时序的理解同理。对于时序不理解的朋友请参考“I2C总线之(二)---时序”完整的程序如下:#include#define uchar unsigned char#define uint unsign...
分类:其他好文   时间:2015-07-27 18:44:51    阅读次数:118
HELLOWIN程式---HELLOWIN.C
#include LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { static TCHAR szAppName[] = TEXT("Hel...
分类:Windows程序   时间:2015-07-23 22:02:24    阅读次数:179
Nginx之红黑树
/*  * Copyright (C) Igor Sysoev  * Copyright (C) Nginx, Inc.  */ #ifndef _NGX_RBTREE_H_INCLUDED_ #define _NGX_RBTREE_H_INCLUDED_ #include #include typedef ngx_uint_t ...
分类:其他好文   时间:2015-07-21 22:17:19    阅读次数:212
791条   上一页 1 ... 42 43 44 45 46 ... 80 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!