Using Win32 (WinAPI) Functions in Microsoft Visual FoxProAdd Microsoft Win32 functionality to your Visual FoxPro applications! This web site presents declarations and FoxPro code samples for over 1,100 Windows API functions.API function: ImageList_Destroy- May 24, 2007 Destroys an image list.http://www.news2news.com/vfp/?function=1082 Code sample: Displaying the associated icons and descriptions for files and folders- May 17, 2007 When the list of files and folders is to be displayed inside a VFP form, the ListBox VFP control and the ListView ActiveX control are probably the first two candidates for the job. The ListBoxs presentation style can only be described as the minimalistic :) , while the ListView shows items in much fancier manner, and can even accompany each file and folder with an icon.And an imminent question arises: where are those icons stored and how to put them to workhttp://www.news2news.com/vfp/?example=530 API function: Shell_GetImageLists- May 14, 2007 Retrieves system image lists for large and small icons -- undocumented.http://www.news2news.com/vfp/?function=1075 API function: SHGetFileInfo- May 13, 2007 Retrieves information about an object in the file system, such as a file, a folder, a directory, or a drive root. The most obvious application for this function is obtaining the default icon (HICON handle) for a given file type.http://www.news2news.com/vfp/?function=1074 Syntax coloring on web pages with GeSHi - Generic Syntax Highlighter- May 8, 2007 Since yesterday news2news web site displays all code samples in colored syntax, including VFP, VB.Net, C, C++ and WMI versions.The web pages definitely look less dull, which is achieved with a help of GeSHi - Generic Syntax Highlighter plus some minor tweaks on top.http://qbnz.com/highlighter/ Code sample: Displaying the color pallete stored in an image file- May 2, 2007 Depending on its bit per pixel mode, an image file can store a color palette inside its data. GDI+ functions GdipGetImagePalette and GdipGetImagePaletteSize allow to retrieve the palette in a form of ColorPalette structure.http://www.news2news.com/vfp/?example=529 API function: GdipSetImagePalette- May 2, 2007 Sets the color palette of this Image object.http://www.news2news.com/vfp/?function=1073 API function: GdipGetImagePalette- May 2, 2007 Gets the color palette of this Image object.http://www.news2news.com/vfp/?function=1072 API function: GdipGetImagePaletteSize- May 2, 2007 Gets the size, in bytes, of the color palette of this Image object.http://www.news2news.com/vfp/?function=1071 Code sample: How to make a VFP form fading out when released (GDI version)- May 1, 2007 When a VFP form is released, usually it disappears immediately. Wouldnt it be nice to have the form slowly (or less slowly) fading outhttp://www.news2news.com/vfp/?example=528 |