Subversion Repositories filter_foundry

Rev

Rev 184 | Rev 192 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 184 Rev 185
Line 186... Line 186...
186
                }
186
                }
187
                break;
187
                break;
188
//      case WM_LBUTTONDOWN: break;
188
//      case WM_LBUTTONDOWN: break;
189
        case WM_MOUSEMOVE:
189
        case WM_MOUSEMOVE:
190
                if(panning && GetCursorPos(&newpos)){
190
                if(panning && GetCursorPos(&newpos)){
191
                        newscroll.h = origscroll.h - zoomfactor*(newpos.x - origpos.x);
191
                        newscroll.h = (int16)(origscroll.h - zoomfactor*(newpos.x - origpos.x));
192
                        newscroll.v = origscroll.v - zoomfactor*(newpos.y - origpos.y);
192
                        newscroll.v = (int16)(origscroll.v - zoomfactor*(newpos.y - origpos.y));
193
                        if( newscroll.h != preview_scroll.h || newscroll.v != preview_scroll.v ){
193
                        if( newscroll.h != preview_scroll.h || newscroll.v != preview_scroll.v ){
194
                                preview_scroll = newscroll;
194
                                preview_scroll = newscroll;
195
                                recalc_preview(gpb,hDlg);
195
                                recalc_preview(gpb,hDlg);
196
                        }
196
                        }
197
                }
197
                }
Line 213... Line 213...
213
}
213
}
214
 
214
 
215
Boolean maindialog(FilterRecordPtr pb){
215
Boolean maindialog(FilterRecordPtr pb){
216
        PlatformData *p;
216
        PlatformData *p;
217
        WNDCLASSEX clx;
217
        WNDCLASSEX clx;
218
        INT_PTR res;
218
        Boolean res;
219
 
219
 
220
        // For the preview image, we register a class, so that we can assign a mouse cursor to this class.
220
        // For the preview image, we register a class, so that we can assign a mouse cursor to this class.
221
        clx.cbSize = sizeof(WNDCLASSEX);
221
        clx.cbSize = sizeof(WNDCLASSEX);
222
        GetClassInfoEx(hDllInstance, "STATIC", &clx);
222
        GetClassInfoEx(hDllInstance, "STATIC", &clx);
223
        clx.lpszClassName = "Preview";
223
        clx.lpszClassName = "Preview";