Subversion Repositories filter_foundry

Rev

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

Rev 433 Rev 435
Line 425... Line 425...
425
 
425
 
426
void Slider_Uninit_PluginDll() {
426
void Slider_Uninit_PluginDll() {
427
        WNDCLASS clx;
427
        WNDCLASS clx;
428
 
428
 
429
        #ifndef use_plugin_dll_sliders
429
        #ifndef use_plugin_dll_sliders
430
        return false;
430
        return;
431
        #endif
431
        #endif
432
 
432
 
433
        if (GetClassInfo(hDllInstance, "slider", &clx) != 0) {
433
        if (GetClassInfo(hDllInstance, "slider", &clx) != 0) {
434
                UnregisterSlider(hDllInstance);
434
                UnregisterSlider(hDllInstance);
435
        }
435
        }
Line 485... Line 485...
485
                        fInitCommonControls = (f_InitCommonControls)(void*)GetProcAddress(libComctl32, "InitCommonControls");
485
                        fInitCommonControls = (f_InitCommonControls)(void*)GetProcAddress(libComctl32, "InitCommonControls");
486
                        if (fInitCommonControls != 0) {
486
                        if (fInitCommonControls != 0) {
487
                                fInitCommonControls();
487
                                fInitCommonControls();
488
                        }
488
                        }
489
                }
489
                }
-
 
490
                // There seems to be a bug in Windows NT 3.11 (if PLUGIN.DLL does not exist):
-
 
491
                // If we call FreeLibrary, and then open Filter Foundry again,
-
 
492
                // then you get an error message "BRUSHES" cannot initialize Comctl32.dll ...
-
 
493
                // I am not sure if it is OK to do a FreeLibrary after you have called InitCommonControls.
-
 
494
                // Isn't that a contradiction?
490
                FreeLibrary(libComctl32);
495
                //FreeLibrary(libComctl32);
491
        }
496
        }
492
 
497
 
493
        // Make "FoundrySlider" a subclass of "msctls_trackbar32" then
498
        // Make "FoundrySlider" a subclass of "msctls_trackbar32" then
494
        return MakeSimpleSubclass(targetClass, "msctls_trackbar32");
499
        return MakeSimpleSubclass(targetClass, "msctls_trackbar32");
495
}
500
}