- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
GDIDEMO.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- /******************************************************************************
- * This is a part of the Microsoft Source Code Samples.
- * Copyright (C) 1993-1997 Microsoft Corporation.
- * All rights reserved.
- * This source code is only intended as a supplement to
- * Microsoft Development Tools and/or WinHelp documentation.
- * See these sources for detailed information regarding the
- * Microsoft samples programs.
- ******************************************************************************/
- #ifdef WIN16
- #define APIENTRY FAR PASCAL
- typedef int (APIENTRY *WNDPROC)();
- typedef WORD WPARAM;
- typedef VOID *PVOID;
- typedef WORD UINT;
- #endif
- #define APPCLASS "GDIDEMO"
- #define APPTITLE "Windows GDI Demonstration"
- #define APPMENU 1000
- #define APPICON 1001
- #define ABOUTBOX 1002
- #define IDM_DEMO_POLYBEZIER 100
- #define IDM_DEMO_XFORM 101
- #define IDM_DEMO_MAZE 102
- #define IDM_DEMO_DRAW 103
- #define IDM_DEMO_BOUNCE 104
- #define IDM_WINDOW_CASCADE 200
- #define IDM_WINDOW_TILE 201
- #define IDM_WINDOW_ICON 202
- #define IDM_HELP_ABOUT 900
- #define COLOR_SCALE_RED 1
- #define COLOR_SCALE_GREEN 2
- #define COLOR_SCALE_BLUE 3
- #define COLOR_SCALE_GRAY 4
- #define CLIENTWND 0
- #define BOUNCETITLE 1
- #define DRAWTITLE 2
- #define MAZETITLE 3
- #define POLYTITLE 4
- #define XFORMTITLE 5
- /*
- ** MAIN WINDOW ROUTINES (gdidemo.c)
- */
- LONG APIENTRY WndProc(HWND,UINT,WPARAM,LONG);
- BOOL CreateProc(HWND);
- VOID DestroyProc(HWND);
- BOOL CommandProc(HWND,WPARAM,LONG);
- VOID PaintProc(HWND);
- DWORD FAR lRandom(VOID);
- /*
- ** INITIALIZATION ROUTINES (init.c)
- */
- BOOL FAR RegisterAppClass(HANDLE);
- VOID FAR UnregisterAppClass(HANDLE);
- HWND FAR CreateAppWindow(HANDLE);
- HWND FAR CreateMDIClientWindow(HWND);
- /*
- ** DIALOG ROUTINES (dialog.c)
- */
- BOOL APIENTRY AboutDlgProc(HWND,UINT,WPARAM,LONG);
- int FAR DisplayDialogBox(HWND,LPSTR,WNDPROC,LONG);
- VOID PaintWindow(HWND,int);
- HPALETTE CreateColorScalePalette(HDC,int);
- /*
- ** WINDOW ROUTINES (wininfo.c)
- */
- BOOL FAR AllocWindowInfo(HWND,WORD);
- PVOID FAR LockWindowInfo(HWND);
- BOOL FAR UnlockWindowInfo(HWND);
- BOOL FAR FreeWindowInfo(HWND);
- #ifdef TESTDEBUG
- #define DEBUGOUT(lpszString) OutputDebugString(lpszString)
- #else
- #define DEBUGOUT(lpszString) {}
- #endif
- /*
- ** Porting macros...
- */
- #if defined(_WIN32) || defined(WIN32)
- #define GETINSTANCE(hWnd) (HANDLE)GetWindowLong(hWnd,GWL_HINSTANCE)
- #define GETCLASSBRUSH(hWnd) (HBRUSH)GetClassLong(hWnd,GCL_HBRBACKGROUND)
- #else
- #define GETINSTANCE(hWnd) (HANDLE)GetWindowWord(hWnd,GWW_HINSTANCE)
- #define GETCLASSBRUSH(hWnd) (HBRUSH)GetClassWord(hWnd,GCW_HBRBACKGROUND)
- #endif