// BOOL EndPaint(HWND hWnd, const PAINTSTRUCT *lpPaint) public static int EndPaint(int hWnd, int lpPaint) { WinDC dc = WinDC.get(readd(lpPaint)); if (dc != null) dc.close(); Caret.ShowCaret(hWnd); Main.drawImage(StaticData.screen.getImage()); WinWindow.get(hWnd).validate(); return TRUE; }
// int ReleaseDC(HWND hWnd, HDC hDC) public static int ReleaseDC(int hWnd, int hDC) { WinDC dc = WinDC.get(hDC); if (dc == null) return 0; if (dc.isScreen()) { Main.drawImage(dc.getImage()); } dc.close(); return 1; }