Skip to content

Latest commit

 

History

History
68 lines (53 loc) · 2.84 KB

SelectObject.md

File metadata and controls

68 lines (53 loc) · 2.84 KB

Home

Function name : SelectObject

Group: Device Context - Library: gdi32


Selects an object into the specified device context (DC). The new object replaces the previous object of the same type.


Code examples:

Printing text on the main VFP window
Placing an arbitrary rectangular area of main VFP window on the Clipboard
How to copy the image of a form to the Clipboard using Bitmap API functions
Creating a clipping region from the path selected into the device context of a form
How to print FoxPro form
Storing screen shot of a form to bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Drawing Windows predefined bitmaps using the LoadBitmap functions
Displaying bitmap using the AlphaBlend function
Splash Screen for the VFP application
Bitmap Class for Visual FoxPro application
How to put a horizontal text scrolling on the form (a news line, marquee)
How to put a vertical text scrolling on the form (a movie cast)
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Printing text with the Escape function
Subclassing CommandButton control to create BackColor property
Vertical Label control
How to change the name and the size of the font in the MessageBox dialog
How to convert a bitmap file to monochrome format (1 bpp)
Converting image file to .ICO file
Placing On-screen Alert on top of all windows
How to make a VFP form fading out when released (GDI version)

Declaration:

HGDIOBJ SelectObject(
  HDC hdc,          // handle to DC
  HGDIOBJ hgdiobj   // handle to object
);  

FoxPro declaration:

DECLARE INTEGER SelectObject IN gdi32;
	INTEGER hdc,;
	INTEGER hObject  

Parameters:

hdc [in] Handle to the DC.

hgdiobj [in] Handle to the object to be selected: bitmap, brush, font, pen, region


Return value:

If the selected object is not a region and the function succeeds, the return value is a handle to the object being replaced.