Relative Content

Tag Archive for c++windowswinapigdi

having trouble capturing and displaying a screenshot

im just started a POC for my remote desk protocol project and get in trouble when runing my code.
the screen capturing is working but only partely, when i display the image im only seeing the top right corner of the screen.

Window gets lost after dragging it from top

I’m writing a GDI application (black background and starfield animation). I need help in the window drag code. It drags perfectly but dragging it by selecting the upper part of the window ( title ) and the area near it, the window gets lost. I don’t know what I’m doing wrong. I tried doing other things but the animation stops for a second and then continues, I don’t want that.

Window closes after mouse release

I’m writing a GDI application (black background and starfield animation). I need help in the window drag code. It drags perfectly but dragging it by selecting the upper part of the window ( title ) and the area near it, the window gets lost. I don’t know what I’m doing wrong. I tried doing other things but the animation stops for a second and then continues, I don’t want that.