"Vincent BĂ©ron" vberon@mecano.gme.usherb.ca wrote:
/* Make the window visible on the screen */ ShowWindow (hwnd, nFunsterStil);
Insert UpdateWindow(hwnd); here.
PrintBmp(hwnd, "BOARD.bmp");
Still, it works on XP and not on Wine, so we should fix Wine. It's probably a message-related difference between the two.
It works on XP by a pure luck. I bet it won't work if you run the app from a full screen text mode console. Window painting is asynchronous by its nature, but the app thinks it's not.
-- Dmitry.