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 "ReleaseDC" in [All]

gdi32

.

/// <remarks>An application must not delete a DC whose handle was obtained by calling the <c>GetDC</c> function. Instead, it must call the <c>ReleaseDC</c> function to free the DC.</remarks>

.

     ReleaseDC(IntPtr.Zero, hDC); // release that device context.

.

  static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc);

.

    ReleaseDC(IntPtr.Zero,hdc);

.

      static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc);

.

       ReleaseDC(IntPtr.Zero, hdc);

user32

.

Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of DCs is limited only by available memory.

.

Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of "DCs" is limited only by available memory.

.

Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of DCs is limited only by available memory.

.

Unless the display DC belongs to a window class, the ReleaseDC function must be called to release the DC after painting. Also, ReleaseDC must be called from the same thread that called GetDCEx. The number of "DCs" is limited only by available memory.

.

    Private Declare Auto Function ReleaseDC Lib "user32.dll" (ByVal _

.

    ReleaseDC(windowHandle, srcDeviceContext)

.

After painting is complete, the ReleaseDC function must be called to release the device context. Not releasing the window device context has serious effects on painting requested by applications.

.

            Win32.ReleaseDC(IntPtr.Zero, screenDc);            

.

        public extern static int ReleaseDC(IntPtr handle, IntPtr hDC);

coredll

.

[DllImport("coredll.dll", EntryPoint="ReleaseDC", SetLastError=true)]

.

private static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);

.

Declare Function ReleaseDC Lib "coredll.dll" (TODO) As TODO

.
Documentation
[ReleaseDC] on MSDN

 
Access PInvoke.net directly from VS: