declare SyncUpdateSurface

This commit is contained in:
Vincent Wei
2020-01-21 14:37:33 +08:00
parent 82497a4032
commit c5b83c9498
+25 -2
View File
@@ -2082,11 +2082,15 @@ MG_EXPORT void GUIAPI DeleteSecondaryDC (HWND hwnd);
/**
* \fn BOOL GUIAPI SyncUpdateDC (HDC hdc)
* \brief Synchronize the update rectangles of the surface corresponding to hdc to screen.
* \brief Synchronize the update rectangles of the surface corresponding to
* a DC to screen.
*
* This function synchronizes the update rectangles of the surface
* corresponding to the DC specified by \a hdc to screen.
*
* \param hdc The handle to the DC.
*
* \return TRUE when there are rectangles to be synchronized and updated.
* \return TRUE when there are rectangles to be synchronized and updated;
* FALSE when _MGUSE_SYNC_UPDATE is not defined, hdc is a memory DC,
* or it is not necessory to update.
*
@@ -2094,6 +2098,25 @@ MG_EXPORT void GUIAPI DeleteSecondaryDC (HWND hwnd);
*/
MG_EXPORT BOOL GUIAPI SyncUpdateDC (HDC hdc);
/**
* \fn BOOL GUIAPI SyncUpdateSurface (HWND hwnd)
* \brief Synchronize the update rectangles of the backing surface of
* a window to screen.
*
* This function synchronizes the update rectangles of the backing surface
* of the window specified by \a hwnd to screen.
*
* \param hwnd The handle to the window.
*
* \return TRUE when there are rectangles to be synchronized and updated;
* FALSE when _MGSCHEMA_COMPOSITING or _MGUSE_SYNC_UPDATE is not defined,
* hwnd is invalid, or it is not necessory to update.
*
* \note This function only works when _MGSCHEMA_COMPOSITING and
* _MGUSE_SYNC_UPDATE defined.
*/
MG_EXPORT BOOL GUIAPI SyncUpdateSurface (HWND hwnd);
/** @} end of dc_fns */
/**