I got a bitmap problem.
I used the Bitblt() to display bitmap, everything seems to work fine. However, using sysmon and other programs, I notice the handles were never free. Memory were draining from it. Windows will eventally come to a ugly death.
I'm using BCW 4.02, compile a C only (no OOB) code, for Win3.X program. I got similar code compiled by some book author, and same problem occur. The bitmap loading/display, and unloading code is found in the sample (bwinapi.hlp). Should I used other functions (is there any)? Is this my problem? Window can't manage to free memory, it's a simple task. I tried it under some WM_COMMAND section, also in WM_PAINT: section (yes, I used BeginPaint() and EndPaint(). I just can't figure out why.
please help
thanks.