|
|
1.1.1.2 ! root 1: ! 2: /******************************************************************************\ ! 3: * This is a part of the Microsoft Source Code Samples. ! 4: * Copyright (C) 1993 Microsoft Corporation. ! 5: * All rights reserved. ! 6: * This source code is only intended as a supplement to ! 7: * Microsoft Development Tools and/or WinHelp documentation. ! 8: * See these sources for detailed information regarding the ! 9: * Microsoft samples programs. ! 10: \******************************************************************************/ ! 11: 1.1 root 12: 13: // STYLES 14: 15: #define ICSTY_OWNERDRAW 0x0001 // set if the central information is not 16: // standard text. 17: #define ICSTY_SHOWFOCUS 0x0002 // set to allow focus painting an movement 18: 19: #define ICSTY_HASFOCUS 0x8000 20: 21: #define ICN_OWNERDRAW (WM_USER + 676) // notifies to draw 22: // wParam=id, lParam=OWNERDRAWPS FAR * 23: #define ICN_HASFOCUS (WM_USER + 677) // notifies of focus set 24: // wParam=fFocus, lParam=(hMemCtrlData, hwnd) 25: #define ICN_BYEBYE (WM_USER + 678) // notifies of imminent death 26: // wParam=hwnd, lParam=dwUser 27: 28: #define ICM_SETSTRING (WM_USER + 776) // alters a string 29: // wParam=index, lParam=LPSTR 30: 31: #define ICSID_UL 0 32: #define ICSID_UC 1 33: #define ICSID_UR 2 34: #define ICSID_LL 3 35: #define ICSID_LC 4 36: #define ICSID_LR 5 37: #define ICSID_CENTER 6 38: 39: #define GWL_USER 0 40: #define GWL_INFODATA 4 41: #define ICCBWNDEXTRA 8 42: 43: HWND CreateInfoCtrl( 44: LPSTR szTitle, 45: INT x, 46: INT y, 47: INT cx, 48: INT cy, 49: HWND hwndParent, 50: HANDLE hInst, 51: LPSTR pszUL, // NULLs here are fine. 52: LPSTR pszUC, 53: LPSTR pszUR, 54: LPSTR pszLL, 55: LPSTR pszLC, 56: LPSTR pszLR, 57: DWORD style, 58: HMENU id, 59: DWORD dwUser); 60: 61: VOID MyCascadeChildWindows(HWND hwndParent); 62: VOID TileChildWindows(HWND hwndParent); 63: 64: typedef struct { 65: PSTR pszUL; 66: PSTR pszUC; 67: PSTR pszUR; 68: PSTR pszLL; 69: PSTR pszLC; 70: PSTR pszLR; 71: PSTR pszCenter; 72: DWORD style; 73: RECT rcFocusUL; 74: RECT rcFocusUR; 75: RECT rcFocusLL; 76: RECT rcFocusLR; 77: HANDLE hInst; 78: } INFOCTRL_DATA; 79: 80: typedef struct { 81: RECT rcBound; 82: RECT rcPaint; 83: HDC hdc; 84: DWORD dwUser; 85: } OWNERDRAWPS; 86:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.