Changeset 85
- Timestamp:
- Jul 6, 2001, 6:57:59 PM (24 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/dialog.h
r82 r85 179 179 ********************************************************************/ 180 180 181 APIRET dlghCreateDlg(HWND *phwndDlg, 182 HWND hwndOwner, 183 ULONG flCreateFlags, 184 PFNWP pfnwpDialogProc, 185 const char *pcszDlgTitle, 186 PDLGHITEM paDlgItems, 187 ULONG cDlgItems, 188 PVOID pCreateParams, 189 const char *pcszControlsFont); 181 APIRET XWPENTRY dlghCreateDlg(HWND *phwndDlg, 182 HWND hwndOwner, 183 ULONG flCreateFlags, 184 PFNWP pfnwpDialogProc, 185 const char *pcszDlgTitle, 186 PDLGHITEM paDlgItems, 187 ULONG cDlgItems, 188 PVOID pCreateParams, 189 const char *pcszControlsFont); 190 typedef APIRET XWPENTRY DLGHCREATEDLG(HWND *phwndDlg, 191 HWND hwndOwner, 192 ULONG flCreateFlags, 193 PFNWP pfnwpDialogProc, 194 const char *pcszDlgTitle, 195 PDLGHITEM paDlgItems, 196 ULONG cDlgItems, 197 PVOID pCreateParams, 198 const char *pcszControlsFont); 199 typedef DLGHCREATEDLG *PDLGHCREATEDLG; 190 200 191 201 /* -
trunk/include/helpers/textview.h
r14 r85 160 160 #define TXVWORDF_LINEFEED 4 // \r 161 161 162 typedef struct _TXVRECTANGLE *PTXVRECTANGLE; 163 162 164 /* 163 165 *@@ TXVWORD: … … 211 213 LONG lX; // X position to paint this word at; 212 214 // this is (re)set during word-to-rectangle correlation! 213 P VOID pvRectangle;// reverse pointer to the TXVRECTANGLE structure to215 PTXVRECTANGLE pRectangle; // reverse pointer to the TXVRECTANGLE structure to 214 216 // which this word belongs; useful for repainting; 215 217 // this is (re)set during word-to-rectangle correlation! … … 256 258 // So one allocated TXVWORD structure can 257 259 // have two pointers pointing to it. 258 } TXVRECTANGLE , *PTXVRECTANGLE;260 } TXVRECTANGLE; 259 261 #endif 260 262 -
trunk/include/helpers/winh.h
r84 r85 161 161 ********************************************************************/ 162 162 163 ULONG XWPENTRY winhQueryWindowStyle(HWND hwnd); 164 163 165 BOOL XWPENTRY winhEnableDlgItem(HWND hwndDlg, SHORT id, BOOL fEnable); 164 166 … … 356 358 ULONG max, 357 359 ULONG current); 360 typedef VOID XWPENTRY WINHSETDLGITEMSPINDATA(HWND hwndDlg, 361 ULONG idSpinButton, 362 ULONG min, 363 ULONG max, 364 ULONG current); 365 typedef WINHSETDLGITEMSPINDATA *PWINHSETDLGITEMSPINDATA; 358 366 359 367 LONG XWPENTRY winhAdjustDlgItemSpinData(HWND hwndDlg, … … 361 369 LONG lGrid, 362 370 USHORT usNotifyCode); 371 typedef LONG XWPENTRY WINHADJUSTDLGITEMSPINDATA(HWND hwndDlg, 372 USHORT usItemID, 373 LONG lGrid, 374 USHORT usNotifyCode); 375 typedef WINHADJUSTDLGITEMSPINDATA *PWINHADJUSTDLGITEMSPINDATA; 363 376 364 377 /* ****************************************************************** -
trunk/readme.txt
r35 r85 1 1 XWP Helpers 0.9.7 README 2 2 (W) Ulrich Mller, October 26, 2000 3 Last updated J anuary 6, 2001, Ulrich Mller3 Last updated July 5, 2001, Ulrich Mller 4 4 5 5 … … 61 61 sorts of OS/2 programs, including: 62 62 63 -- standard C code which is independent of the OS/2 platform; 63 -- standard C code which is independent of the OS/2 platform 64 (and should even work for Unix or Windows); 64 65 65 66 -- OS/2-specific code which can be used in any OS/2 program 66 ( text modeor PM);67 (VIO or PM); 67 68 68 69 -- PM-specific code which assists you in writing PM programs. 69 70 70 71 The XWPHelpers can be compiled with EMX/GCC or IBM VisualAge 71 C++ 3.08. They can be used with C or C++ programs. 72 C++ 3.08. They can be used with C or C++ programs. All typecasts 73 should be C++-compatible. 72 74 73 75 … … 98 100 99 101 The XWPHelpers do not come with pre-made documentation. However, 100 you can automatically have documentation generated from the sources 101 using my "xdoc" utility, which resides in the main directory of 102 the helpers. (The source code for xdoc is in the WarpIN CVS 103 repository because it shares some C++ code with WarpIN.) 104 105 To have the code generated, call "createdoc.cmd" in the main 106 directory. This will call xdoc in turn with the proper parameters 107 and create a new "HTML" directory, from where you should start 108 with the "index.html" file. 102 you can automatically have extensive, categorized documentation 103 generated automatically from the C sources using my "xdoc" 104 utility, which resides in the main directory of the helpers. 105 (The source code for xdoc is in the WarpIN CVS repository 106 because it shares some C++ code with WarpIN.) 107 108 To have the code generated, simply call "createdoc.cmd" in the 109 main directory. This will call xdoc in turn with the proper 110 parameters and create a new "HTML" directory, from where you 111 should start with the "index.html" file. 109 112 110 113 111 114 4. COMPILING 112 115 ============ 116 117 You don't have to worry about compilation if you only want 118 to compile XWorkplace or WarpIN. The makefiles of those two 119 projects are set up properly to automatically compile the 120 XWPHelpers as well. This section is only for people who 121 want to compile the XWPHelpers separately for use in a 122 different project. 113 123 114 124 Compiling is a bit tricky because the code and the makefiles -
trunk/src/helpers/dialog.c
r83 r85 212 212 ********************************************************************/ 213 213 214 #define PM_GROUP_SPACING_X 20215 #define PM_GROUP_SPACING_TOP 30214 #define PM_GROUP_SPACING_X 10 215 #define PM_GROUP_SPACING_TOP 20 216 216 217 217 VOID ProcessTable(PTABLEDEF pTableDef, -
trunk/src/helpers/textview.c
r47 r85 1266 1266 { 1267 1267 pWordThis->lX = flbuf.lXCurrent; 1268 pWordThis->p vRectangle = (PVOID)pRect;1268 pWordThis->pRectangle = pRect; 1269 1269 lstAppendItem(&pRect->llWords, pWordThis); 1270 1270 ulWordsInThisRect++; … … 1310 1310 1311 1311 // store word in rectangle 1312 pWordThis->p vRectangle = (PVOID)pRect;1312 pWordThis->pRectangle = pRect; 1313 1313 lstAppendItem(&pRect->llWords, pWordThis); 1314 // ###memory leak right here!!!1314 // @@todo memory leak right here!!! 1315 1315 ulWordsInThisRect++; 1316 1316 … … 2138 2138 POINTL ptlStart; 2139 2139 ULONG flOptions = pWordThis->flOptions; 2140 PTXVRECTANGLE pLineRcl = (PTXVRECTANGLE)pWordThis->pvRectangle;2140 PTXVRECTANGLE pLineRcl = pWordThis->pRectangle; 2141 2141 2142 2142 RECTL rclLine; … … 3031 3031 if (pWord) 3032 3032 { 3033 PTXVRECTANGLE pRect = (PTXVRECTANGLE)pWord->pvRectangle;3033 PTXVRECTANGLE pRect = pWord->pRectangle; 3034 3034 ULONG ulWinCY = (ptxvd->rclViewText.yTop - ptxvd->rclViewText.yBottom); 3035 3035 -
trunk/src/helpers/tree.c
r83 r85 114 114 * 115 115 * -- Fully balanced trees can be quite expensive because on 116 * every insertion or deletion, the tree nodes must be r eordered.116 * every insertion or deletion, the tree nodes must be rotated. 117 117 * By contrast, "Red-black" binary balanced trees contain 118 118 * an additional bit in each node which marks the node as 119 119 * either red or black. This bit is used only for efficient 120 120 * rebalancing when inserting or deleting nodes. 121 *122 * The color of each node is instrumental in determining the123 * balance of the tree. During insert and delete operations,124 * nodes may be rotated to maintain tree balance.125 121 * 126 122 * I don't fully understand why this works, but if you really -
trunk/src/helpers/winh.c
r83 r85 258 258 * 259 259 ********************************************************************/ 260 261 /* 262 *@@ winhQueryWindowStyle: 263 * 264 *@@added V0.9.13 (2001-07-02) [umoeller] 265 */ 266 267 ULONG winhQueryWindowStyle(HWND hwnd) 268 { 269 return (WinQueryWindowULong(hwnd, QWL_STYLE)); 270 } 260 271 261 272 /*
Note:
See TracChangeset
for help on using the changeset viewer.