SlidingDrawer(滑动式抽屉)隐藏屏外的内容,并允许用户拖拽一个handle以显示隐藏的内容。SlidingDrawer可以在垂直或者水平使用。它由两个子视图组成:一个是用户拖拽的handle(柄),另一个是随着拖动变化的 content(内容)。SlidingDrawer应当作为内部.....
分类:
移动开发 时间:
2015-02-26 11:34:45
阅读次数:
172
在读《Effective C++》和项目源代码时,看到pImpl Idiom。它可以用来降低文件间的编译依赖关系,通过把一个Class分成两个Class,一个只提供接口,另一个负责实现该接口,实现接口与实现的分离。这个分离的关键在于“以声明的依赖性”替换“定义的依赖性”,而编译依赖性最小化的本质是:...
分类:
其他好文 时间:
2015-02-26 11:29:50
阅读次数:
159
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-...
分类:
其他好文 时间:
2015-02-17 21:03:54
阅读次数:
173
http://www.jpct.net/wiki/index.php/MultiTouch_camera_controls MultiTouch camera controls This code will handle control from 1 or 2 fingers, it was mad...
分类:
其他好文 时间:
2015-02-17 12:50:57
阅读次数:
178
公共的接口要求
//SocketProtocol.h
#pragma once
class SocketIF
{
public:
//客户端初始化 获取handle 上下文信息
virtual int cltSocketInit() = 0;
//客户端发报文
virtual int cltSocketSend(unsigned char *buf, int buflen) = 0;...
分类:
其他好文 时间:
2015-02-13 21:14:07
阅读次数:
188
import requestsfrom html.parser import HTMLParserclass MyHtmlParser(HTMLParser): srclist = {} count = 0 def handle_starttag(self, tag, attrs)...
分类:
其他好文 时间:
2015-02-13 16:28:39
阅读次数:
153
在写程序中。为了让程序效率高。有时会点用很高的CPU。这里用户体验不好可以设置线程的优先级来搞定。
BOOL SetThreadPriority(
HANDLE hThread, // handle to the thread
int nPriority // thread priority level
);
功能说明
设置指定线程的优先级
参数说明
h...
分类:
系统相关 时间:
2015-02-11 12:48:12
阅读次数:
203
一、 1 @***************************************** 2 HandleDataAbort: 3 b HandleDataAbort 4 @************* 5 @ 0x14: 保留 @ 6 @************* 7 Handle...
分类:
其他好文 时间:
2015-02-10 20:13:20
阅读次数:
270
Proxies are used byStoresto handle the loading and saving ofModeldata. Usually developers will not need to create or interact with proxies directly.pr...
分类:
Web程序 时间:
2015-02-10 13:09:54
阅读次数:
209
句柄handle 分为文件句柄和目录句柄,文件句柄实际上包含文件,进程和套接字的读写。文件句柄的操作步骤open(FD,"filename");@lines=;close(FD);open()由以下几个用法open(FD,"> filename") 写数据进文件open(FD,">> filenam...
分类:
其他好文 时间:
2015-02-09 19:55:50
阅读次数:
172