Sascha
April 15th, 1998, 06:04 AM
Problem : Using the sample "Open File with Bitmap Preview" causes repaints of the whole desktop all the times.
Fix : I fixed it with adding the follwing line :
#define IDC_BMP (5001)
and by replacing the follwing two lines
case WM_NOTIFY :
...
HWND wnd = GetDlgItem(hdlg, IDC_PREVIEW);
InvalidateRect(wnd, NULL, TRUE);
with :
HWND wnd = GetDlgItem(hdlg, IDC_BMP);
CWnd::FromHandle(wnd)->Invalidate();
Sascha
Fix : I fixed it with adding the follwing line :
#define IDC_BMP (5001)
and by replacing the follwing two lines
case WM_NOTIFY :
...
HWND wnd = GetDlgItem(hdlg, IDC_PREVIEW);
InvalidateRect(wnd, NULL, TRUE);
with :
HWND wnd = GetDlgItem(hdlg, IDC_BMP);
CWnd::FromHandle(wnd)->Invalidate();
Sascha