# HG changeset patch # User Oleksandr Gavenko # Date 1281168681 -10800 # Node ID ea05ac5655ef8cf2f7998749299e23441c0659db # Parent b4b9632180918096a153480813cdf41eaecf5b17# Parent eb598e0a7bae9974a9a5962aaa5123ebad5de3e0 merged diff -r b4b963218091 -r ea05ac5655ef devel-windows.rst --- a/devel-windows.rst Fri Aug 06 11:23:02 2010 +0300 +++ b/devel-windows.rst Sat Aug 07 11:11:21 2010 +0300 @@ -158,3 +158,59 @@ http://sourceforge.net/projects/wtl http://en.wikipedia.org/wiki/Windows_Template_Library + +* Windows style variable names. + + Prefix | Data type + ---------+----------------------------------------- + b | boolean + by | byte or unsigned char + c | char + cx / cy | short used as size + dw | DWORD, double word or unsigned long + fn | function + h | handle + i | int (integer) + l | Long + n | short int + p | a pointer variable containing the address of a variable + s | string + sz | ASCIIZ null-terminated string + w | WORD unsigned int + x, y | short used as coordinates + + PrefixCategory | Mean + ----------------+---------------- + CS | Class style + CW | Create window + DT | Draw text + IDC | Cursor ID + IDI | Icon ID + WM | Window message + WS | Window style + + Data type | Meaning + ----------+------------------------------------------------------------------- + FAR | Same as far. Identifies an address that originally used the + | segment:offset addressing schema. Now FAR simply identifies a + | (default) 32-bit address but may be omitted entirely in many cases. + | + PASCAL | Same as Pascal. The Pascal convention demanded by Windows + | defines the order in which arguments are found in the stack when + | passed as calling parameters. + | + WORD | Unsigned integer (16 bits) + | + UINT | Unsigned integer, same as WORD + | + DWORD | Double word, unsigned long int (32 bits) + | + LONG | Signed long integer (32 bits) + | + LPSTR | Long (far) pointer to character string + | + NEAR | Obsolete, previously identified an address value within a 16KB + | memory block. + + http://www.tenouk.com/cnotation.html + C/C++ NOTATION STORY