mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
declare SyncUpdateSurface
This commit is contained in:
+25
-2
@@ -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 */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user