Thanks a lot.
I have already tried InvalidateRect(hwnd, NULL, TRUE) where as hwnd I tried both hwnd of the dialog box and hwnd of the rectangle on which I draw the bitmap. It erases the bitmap and does not paint it until I hide and show the dialog box. It does not get the WM_PAINT message.
If I...
Thanks a lot. I have few other questions if I may ask. Currently I display the bitmap in a normal window in a test program. I handle the WM_PAINT in the WndProc(). However, I need to display it in a control on a dialog box. So the questions are:
1. What control should I use? (frame, rectangle...
I have just tried it. It compiles OK. When I step through it everything works. The only problem is the bitmap does not appear in the window. (I put the code in WM_CREATE.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.