diff options
-rw-r--r-- | GdiRadarLib/GdiRadar.cpp | 5 | ||||
-rw-r--r-- | GdiRadarLib/GdiRadar.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/GdiRadarLib/GdiRadar.cpp b/GdiRadarLib/GdiRadar.cpp index 75f4eca..b62dfd2 100644 --- a/GdiRadarLib/GdiRadar.cpp +++ b/GdiRadarLib/GdiRadar.cpp @@ -216,6 +216,11 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM l return DefWindowProcW(hwnd, message, wparam, lparam); } +HWND gdi_radar_get_hwnd(struct gdi_radar_context * const ctx) +{ + return ctx->myDrawWnd; +} + struct gdi_radar_context * const gdi_radar_configure(struct gdi_radar_config const * const cfg, HINSTANCE hInst) diff --git a/GdiRadarLib/GdiRadar.h b/GdiRadarLib/GdiRadar.h index 8e5a26a..21ae9ad 100644 --- a/GdiRadarLib/GdiRadar.h +++ b/GdiRadarLib/GdiRadar.h @@ -21,6 +21,7 @@ static inline HINSTANCE gdi_radar_get_fake_hinstance() LONG_PTR hi = GetWindowLongW(GetActiveWindow(), -6); return (HINSTANCE)hi; } +HWND gdi_radar_get_hwnd(struct gdi_radar_context * const ctx); struct gdi_radar_context * const gdi_radar_configure(struct gdi_radar_config const * const cfg, HINSTANCE hInst); |