Hi
Is it ok to call GetWindowDC twice on the same window before ReleaseDC ?
HDC dc1 = GetWindow(hWin1);
HDC dc2 = GetWindow(hWin1);
...
ReleaseDC(hWin1, dc2);
ReleaseDC(hWin1, dc1);
I usualy only do it once but I noticed that sometimes my drawings
calls generate a WM_PAINT message and then id get BeginPaint
EndPaint which pretty much does get/release of dcs.
thanks a lot.