Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.79 KB

File metadata and controls

59 lines (45 loc) · 1.79 KB

Home

Function name : SetBkMode

Group: Painting and Drawing - Library: gdi32


Sets the background mix mode of the specified device context. The background mix mode is used with text, hatched brushes, and pen styles that are not solid lines.


Code examples:

Printing text on the main VFP window
Creating a clipping region from the path selected into the device context of a form
Splash Screen for the VFP application
Using the DrawText function
Using Font and Text functions
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)
Subclassing CommandButton control to create BackColor property
Vertical Label control
Placing On-screen Alert on top of all windows

Declaration:

int SetBkMode(
  HDC hdc,      // handle to DC
  int iBkMode   // background mode
);  

FoxPro declaration:

DECLARE INTEGER SetBkMode IN gdi32;
	INTEGER hdc,;
	INTEGER iBkMode  

Parameters:

hdc [in] Handle to the device context.

iBkMode [in] Specifies the background mode.


Return value:

If the function succeeds, the return value specifies the previous background mode. If the function fails, the return value is zero.

#DEFINE TRANSPARENT    1  
#DEFINE OPAQUE         2