7月10日

1.USHORT

0到65535的无符号16位整数,System.UInt16

转换:

ushort x = 5, y = 12;
ushort z = x + y;   // Error: conversion from int to ushort
ushort z = (ushort)(x + y);   // OK: explicit conversion 
SHORT -32,768到32,767的有符号16位整数,System.UInt16

http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx


2.PALETTEENTRY structure

The PALETTEENTRY structure specifies the color and usage of an entry in a logical palette. A logical palette is defined by a LOGPALETTE structure.

typedef struct tagPALETTEENTRY {
  BYTE peRed;
  BYTE peGreen;
  BYTE peBlue;
  BYTE peFlags;
} PALETTEENTRY;
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162769(v=vs.85).aspx


3.LOGPALETTE structure

The LOGPALETTE structure defines a logical palette.

typedef struct tagLOGPALETTE {
  WORD         palVersion;
  WORD         palNumEntries;
  PALETTEENTRY palPalEntry[1];
} LOGPALETTE;
http://msdn.microsoft.com/en-us/library/windows/desktop/dd145040(v=vs.85).aspx


4.PULONG

A pointer to a ULONG.

This type is declared in WinDef.h as follows:

typedef ULONG *PULONG;

ULONG

An unsigned LONG. The range is 0 through 4294967295 decimal.

This type is declared in WinDef.h as follows:

typedef unsigned long ULONG;
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值