|
@@ -24,6 +24,14 @@ BOOL InitInstance(HINSTANCE, int);
|
|
|
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
|
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
|
|
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
|
|
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
|
|
|
|
|
|
|
|
|
|
+void Render() {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 将 hMem 的数据一次写入到 hDC 中
|
|
|
|
|
+ BitBlt(hDC, 0, 0, wWidth, wHeight, hMem, 0, 0, SRCCOPY);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
|
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
|
|
_In_opt_ HINSTANCE hPrevInstance,
|
|
_In_opt_ HINSTANCE hPrevInstance,
|
|
|
_In_ LPWSTR lpCmdLine,
|
|
_In_ LPWSTR lpCmdLine,
|
|
@@ -82,8 +90,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
|
|
DispatchMessage(&msg);
|
|
DispatchMessage(&msg);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 将 hMem 的数据一次写入到 hDC 中
|
|
|
|
|
- BitBlt(hDC, 0, 0, wWidth, wHeight, hMem, 0, 0, SRCCOPY);
|
|
|
|
|
|
|
+ Render();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (int) msg.wParam;
|
|
return (int) msg.wParam;
|
|
@@ -211,3 +218,4 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
}
|
|
}
|
|
|
return (INT_PTR)FALSE;
|
|
return (INT_PTR)FALSE;
|
|
|
}
|
|
}
|
|
|
|
|
+
|