advance backligh button gone? RRS feed

  • Question

  • My “advanced” backlight button seems to have disappeared from my control panel Display-Backlight page. I remember having this working some time back but don’t know why all of a sudden it has stopped.

    I have made sure my custom advbacklight.dll is included in the nk.bin and the registry entry: [HKEY_CURRENT_USER\ControlPanel\BackLight]

    "AdvancedCPL" = "AdvBacklight"

    is included. I also did a dumpbin /EXPORTS advbacklight.dll and the BacklightAdvApplet is exported all right.

    I also tried cloning and building the original advanced backlight MS sample. It also builds and includes OK but also does not show the “advanced” button.

    Has anyone else seen this? How would you troubleshoot?

    Monday, December 6, 2010 2:45 AM

All replies

  • See the following code snippet in WINCE600\PUBLIC\WCESHELLFE\OAK\CTLPNL\CPLMAIN\Screen.cpp

        // see if "Advanced" button needs to be shown
                LPCTSTR pszFileName = reg.ValueSZ(RV_ADVANCEDCPL);
                hAdvanced = NULL;
                pfnAdvanced = NULL;

                if(pszFileName && (hAdvanced = LoadLibrary(pszFileName)))
                    pfnAdvanced = (ADVANCEDPROC)GetProcAddress(hAdvanced, FUNCNAME_BACKLIGHTADVAPPLET);
                ShowWindow(DI(IDC_BADVANCED), (pfnAdvanced ? SW_SHOW : SW_HIDE));
                AygInitDialog( hDlg, SHIDIF_SIPDOWN );

    you can add debug messages here to know the reason of failure.

    Monday, December 6, 2010 9:03 AM
  • Solved problem. dll must be in files section not modules in bib.

    Monday, December 6, 2010 8:49 PM