Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetStockObject" in [All]

gdi32

.
Summary
The GetStockObject function retrieves a handle to one of the stock pens, brushes, fonts, or palettes.
.

    static extern IntPtr GetStockObject(StockObjects fnObject);

.

    Private Shared Function GetStockObject(fnObject As StockObjects) As IntPtr

.
Documentation
[GetStockObject] on MSDN
.

    public static extern int GetStockObject(int nStockBrush);

.

int hBrush = GetStockObject(NULL_BRUSH);

user32

.

            wndclass.hbrBackground = Win32.GetStockObject(StockObjects.WHITE_BRUSH);


 
Access PInvoke.net directly from VS: