win32gui.SetGraphicsMode

int = SetGraphicsMode(hdc, Mode )

Enables or disables advanced graphics features for a DC

Parameters

hdc : PyHANDLE

Handle to a device context

Mode : int

GM_COMPATIBLE or GM_ADVANCED (from win32con)

Return Value

Returns the previous mode, one of win32con.GM_COMPATIBLE or win32con.GM_ADVANCED