Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Bitmap Class for Visual FoxPro application
Drawing Windows predefined bitmaps using the LoadBitmap functions
..msdn    Add comment     W32 Constants      Translate this page
The LoadBitmap function loads the specified bitmap resource from a module"s executable file. This function has been superseded by the LoadImage function.
Code examples:
Bitmap Class for Visual FoxPro application
Drawing Windows predefined bitmaps using the LoadBitmap functions
HBITMAP LoadBitmap(
  HINSTANCE hInstance,  // handle to application instance
  LPCTSTR lpBitmapName  // name of bitmap resource
FoxPro declaration:
DECLARE INTEGER LoadBitmap IN user32;
    INTEGER hInstance,;
    INTEGER lpBitmapName
[in] Handle to the instance of the module whose executable file contains the bitmap to be loaded.

[in] Pointer to a null-terminated string that contains the name of the bitmap resource to be loaded.
Return value:
If the function succeeds, the return value is the handle to the specified bitmap. Otherwise, the return value is NULL.
My comment:
The application must call the DeleteObject function to delete each bitmap handle returned by the LoadBitmap function.

LoadBitmap creates a compatible bitmap of the display, which cannot be selected to a printer. To load a bitmap that you can select to a printer, call LoadImage and specify LR_CREATEDIBSECTION to create a DIB section. A DIB section can be selected to any device.
Word Index links for the LoadBitmap :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2002-01-16 21:36:51
Modified: 2002-01-16 21:40:19
Visited in last 7 days: 50
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
21 sec.Function: 'CreateJobObject'
41 sec.Function: 'SetUserGeoID'
1.03 min.Function: 'FtpOpenFile'
1.37 min.Function: 'SetWindowPos'
1.72 min.Function: 'GdipSetWorldTransform'
2.07 min.Function: 'InternetWriteFile'
2.42 min.Function: 'CompareString'
2.75 min.Function: 'SQLNativeSql'
3.13 min.Function: 'EmptyClipboard'
3.47 min.Function: 'ntohl'
Advertise here!