// JP opened flex table

Click to See Complete Forum and Search --> : BUG : Open File with Bitmap Preview


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

Sascha
April 17th, 1998, 04:33 AM
Certainly all other InvalidateRect (wnd, NULL, TRUE) have to be replaced the same way.

Sascha

//JP added flex table