Improved documentation and fixed typos.
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 8bb132d..2a5a88e 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -64,8 +64,8 @@
* Expands the bitmaps of an image list by the given number of images.
*
* PARAMS
- * himl [I] image list handle
- * nImageCount [I] Number of images to add.
+ * himl [I] handle to image list
+ * nImageCount [I] number of images to add
*
* RETURNS
* nothing
@@ -130,9 +130,9 @@
* Add an image or images to an image list.
*
* PARAMS
- * himl [I] image list handle
- * hbmImage [I] image bitmap handle
- * hbmMask [I] mask bitmap handle
+ * himl [I] handle to image list
+ * hbmImage [I] handle to image bitmap
+ * hbmMask [I] handle to mask bitmap
*
* RETURNS
* Success: Index of the first new image.
@@ -202,8 +202,8 @@
* Adds an icon to an image list.
*
* PARAMS
- * himl [I] image list handle
- * hIcon [I] icon handle
+ * himl [I] handle to image list
+ * hIcon [I] handle to icon
*
* RETURNS
* Success: index of the new image
@@ -213,7 +213,7 @@
INT32 WINAPI
ImageList_AddIcon (HIMAGELIST himl, HICON32 hIcon)
{
- return (ImageList_ReplaceIcon (himl, -1, hIcon));
+ return ImageList_ReplaceIcon (himl, -1, hIcon);
}
@@ -292,8 +292,8 @@
* as a drag image.
*
* PARAMS
- * himlTrack [I] Handle of the source image list
- * iTrack [I] Index of the drag image in the source image list
+ * himlTrack [I] handle to the source image list
+ * iTrack [I] index of the drag image in the source image list
* dxHotspot [I] X position of the hot spot of the drag image
* dyHotspot [I] Y position of the hot spot of the drag image
*
@@ -311,7 +311,7 @@
FIXME(imagelist, "partially implemented!\n");
if (himlTrack == NULL)
- return (FALSE);
+ return FALSE;
if (himlInternalDrag)
ImageList_EndDrag ();
@@ -321,7 +321,7 @@
himlTrack->flags, 1, 1);
if (himlInternalDrag == NULL) {
ERR(imagelist, "Error creating drag image list!\n");
- return (FALSE);
+ return FALSE;
}
nInternalDragHotspotX = dxHotspot;
@@ -347,7 +347,7 @@
himlInternalDrag->cCurImage = 1;
- return (TRUE);
+ return TRUE;
}
@@ -358,9 +358,9 @@
* destination image list. Images can be copied or swapped.
*
* PARAMS
- * himlDst [I] destination image list handle.
+ * himlDst [I] handle to the destination image list
* iDst [I] destination image index.
- * himlSrc [I] source image list handle
+ * himlSrc [I] handle to the source image list
* iSrc [I] source image index
* uFlags [I] flags for the copy operation
*
@@ -574,7 +574,7 @@
* Destroys an image list.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
*
* RETURNS
* Success: TRUE
@@ -627,7 +627,8 @@
BOOL32 WINAPI
ImageList_DragEnter (HWND32 hwndLock, INT32 x, INT32 y)
{
- if (himlInternalDrag == NULL) return (FALSE);
+ if (himlInternalDrag == NULL)
+ return FALSE;
if (hwndLock)
hwndInternalDrag = hwndLock;
@@ -761,9 +762,9 @@
* ImageList_Draw [COMCTL32.50] Draws an image.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* i [I] image index
- * hdc [I] display context handle
+ * hdc [I] handle to device context
* x [I] x position
* y [I] y position
* fStyle [I] drawing flags
@@ -810,9 +811,9 @@
* Draws an image and allows to use extended drawing features.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* i [I] image index
- * hdc [I] device context handle
+ * hdc [I] handle to device context
* x [I] X position
* y [I] Y position
* xOffs [I] X offset
@@ -1045,7 +1046,7 @@
DeleteDC32 (hdcImageList);
- return (TRUE);
+ return TRUE;
}
@@ -1068,7 +1069,7 @@
if (himlSrc == NULL) {
ERR (imagelist, "Invalid image list handle!\n");
- return (NULL);
+ return NULL;
}
himlDst = ImageList_Create (himlSrc->cx, himlSrc->cy, himlSrc->flags,
@@ -1095,7 +1096,7 @@
DeleteDC32 (hdcSrc);
}
- return (himlDst);
+ return himlDst;
}
@@ -1131,7 +1132,7 @@
}
- return (TRUE);
+ return TRUE;
}
@@ -1154,7 +1155,7 @@
if (himl == NULL)
return CLR_NONE;
- return (himl->clrBk);
+ return himl->clrBk;
}
@@ -1183,7 +1184,7 @@
if (himlInternalDrag)
return (himlInternalDrag);
- return (NULL);
+ return NULL;
}
@@ -1193,7 +1194,7 @@
* Creates an icon from a masked image of an image list.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* i [I] image index
* flags [I] drawing style flags
*
@@ -1259,7 +1260,7 @@
* Retrieves the size of an image in an image list.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* cx [O] pointer to the image width.
* cy [O] pointer to the image height.
*
@@ -1294,7 +1295,7 @@
* Returns the number of images in an image list.
*
* PARAMS
- * himl [I] image list handle.
+ * himl [I] handle to image list
*
* RETURNS
* Success: Number of images.
@@ -1317,9 +1318,9 @@
* Returns information about an image in an image list.
*
* PARAMS
- * himl [I] image list handle.
+ * himl [I] handle to image list
* i [I] image index
- * pImageInfo [O] pointer to the image information.
+ * pImageInfo [O] pointer to the image information
*
* RETURNS
* Success: TRUE
@@ -1352,7 +1353,7 @@
* Retrieves the rectangle of the specified image in an image list.
*
* PARAMS
- * himl [I] handle to the image list
+ * himl [I] handle to image list
* i [I] image index
* lpRect [O] pointer to the image rectangle
*
@@ -1396,7 +1397,7 @@
* uFlags [I] loading flags
*
* RETURNS
- * Success: handle of the loaded image
+ * Success: handle to image list
* Failure: NULL
*
* SEE
@@ -1412,7 +1413,10 @@
INT32 nImageCount;
handle = LoadImage32A (hi, lpbmp, uType, 0, 0, uFlags);
- if (!handle) return (NULL);
+ if (!handle) {
+ ERR (imagelist, "Error loading image!\n");
+ return NULL;
+ }
if (uType == IMAGE_BITMAP) {
BITMAP32 bmp;
@@ -1438,7 +1442,7 @@
DeleteObject32 (handle);
- return (himl);
+ return himl;
}
@@ -1457,7 +1461,7 @@
* uFlags [I] loading flags
*
* RETURNS
- * Success: handle of the loaded image
+ * Success: handle to image list
* Failure: NULL
*
* SEE
@@ -1475,7 +1479,7 @@
handle = LoadImage32W (hi, lpbmp, uType, 0, 0, uFlags);
if (!handle) {
ERR (imagelist, "Error loading image!\n");
- return (NULL);
+ return NULL;
}
if (uType == IMAGE_BITMAP) {
@@ -1502,7 +1506,7 @@
DeleteObject32 (handle);
- return (himl);
+ return himl;
}
@@ -1513,9 +1517,9 @@
* images of both source image lists.
*
* PARAMS
- * himl1 [I] first image list handle
+ * himl1 [I] handle to first image list
* i1 [I] first image index
- * himl2 [I] second image list handle
+ * himl2 [I] handle to second image list
* i2 [I] second image index
* dx [I] X offset of the second image relative to the first.
* dy [I] Y offset of the second image relative to the first.
@@ -1634,7 +1638,7 @@
* pstm [I] pointer to a stream
*
* RETURNS
- * Success: image list handle
+ * Success: handle to image list
* Failure: NULL
*
* NOTES
@@ -1650,7 +1654,7 @@
FIXME (imagelist, "empty stub!\n");
- return (NULL);
+ return NULL;
}
@@ -1786,10 +1790,10 @@
* Replaces an image in an image list with a new image.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* i [I] image index
- * hbmImage [I] image bitmap handle
- * hbmMask [I] mask bitmap handle. Can be NULL.
+ * hbmImage [I] handle to image bitmap
+ * hbmMask [I] handle to mask bitmap. Can be NULL.
*
* RETURNS
* Success: TRUE
@@ -1847,9 +1851,9 @@
* Replaces an image in an image list using an icon.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* i [I] image index
- * hIcon [I] icon handle
+ * hIcon [I] handle to icon
*
* RETURNS
* Success: index of the replaced image
@@ -1935,7 +1939,7 @@
* Sets the background color of an image list.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* clrBk [I] background color
*
* RETURNS
@@ -1963,7 +1967,7 @@
* Combines the specified image with the current drag image
*
* PARAMS
- * himlDrag [I] drag image list handle
+ * himlDrag [I] handle to drag image list
* iDrag [I] drag image index
* dxHotspot [I] X position of the hot spot
* dyHotspot [I] Y position of the hot spot
@@ -2009,7 +2013,7 @@
* Sets a filter (or does something completely different)!!???
*
* PARAMS
- * himl [I] ???
+ * himl [I] handle to image list
* i [I] ???
* dwFilter [I] ???
*
@@ -2182,7 +2186,7 @@
* Assigns an overlay mask index to an existing image in an image list.
*
* PARAMS
- * himl [I] image list handle
+ * himl [I] handle to image list
* iImage [I] image index
* iOverlay [I] overlay mask index
*
@@ -2212,7 +2216,7 @@
* Writes an image list to a stream.
*
* PARAMS
- * himl [I] Image list handle.
+ * himl [I] handle to image list
* pstm [O] Pointer to a stream.
*
* RETURNS
diff --git a/documentation/common_controls b/documentation/common_controls
index 4cec1d7..17258d1 100644
--- a/documentation/common_controls
+++ b/documentation/common_controls
@@ -56,8 +56,11 @@
3.3 Date and Time Picker Control
--------------------------------
+ Author:
+ Dummy written by Eric Kohl. <ekohl@abo.rhein-zeitung.de>
+
Status:
- Nothing done at all.
+ Dummy control. No functionality.
Notes:
Author needed!! Any volunteers??
@@ -113,8 +116,12 @@
3.9 IP Address Control
----------------------
+ Author:
+ Dummy written by Eric Kohl. <ekohl@abo.rhein-zeitung.de>
+ Alex Priem <alexp@sci.kun.nl>
+
Status:
- Dummy written by Eric Kohl.
+ Under construction.
Notes:
Author needed!! Any volunteers??
@@ -135,8 +142,11 @@
3.11 Month Calendar Control
---------------------------
+ Author:
+ Dummy written by Eric Kohl. <ekohl@abo.rhein-zeitung.de>
+
Status:
- Nothing done at all.
+ Dummy control. No functionality.
Notes:
Author needed!! Any volunteers??
@@ -195,7 +205,7 @@
3.16 Rebar Control (Cool Bar)
-----------------------------
Author:
- Dummy written by Eric Kohl.
+ Eric Kohl <ekohl@abo.rhein-zeitung.de>
Status:
Development in progress.
@@ -257,7 +267,7 @@
---------------------
Author:
Dummy written by Eric Kohl <ekohl@abo.rhein-zeitung.de>
- Alex Priem (alexp@sci.kun.nl)
+ Alex Priem <alexp@sci.kun.nl>
Status:
Under construction.
@@ -267,7 +277,7 @@
----------------------
Author:
Dummy written by Eric Kohl.
- Alex Priem (alexp@sci.kun.nl)
+ Alex Priem <alexp@sci.kun.nl>
Status:
Under contstruction.
@@ -373,5 +383,6 @@
a control send me an e-mail. If you like to fix bugs or add some
functionality send an e-mail to the author of the control.
- Eric Kohl <ekohl@abo.rhein-zeitung.de>
+
+Eric Kohl <ekohl@abo.rhein-zeitung.de>