WinCE 背光显示bug

今日发现WinCE一个背光显示bug.

 

如图的界面,当点击其中2个Combo以后,再点高级按钮,不能弹出高级背光对话框,跟了下,

很奇怪,貌似是点击COMBO后,高级对话框的DLL无缘无故被卸载掉了,但是从代码看,点击COMBO并没有任何操作,

解决办法是每次点击“高级按钮”,重新加载DLL。

更改public/wceshellfe/oak/ctlpnl/CPLMAIN/screen.cpp,修改IDC_BADVANCED 按钮处理函数。

 

case IDC_BADVANCED: //Added by Ei //RETAILMSG(1,(TEXT("IDC_BADVANCED ++/n"))); pszFileName = reg.ValueSZ(RV_ADVANCEDCPL); MyFreeLib(hAdvanced); if(pszFileName && (hAdvanced = LoadLibrary(pszFileName))) { pfnAdvanced = (ADVANCEDPROC)GetProcAddress(hAdvanced, FUNCNAME_BACKLIGHTADVAPPLET); } ASSERT(pfnAdvanced); if (pfnAdvanced) { if (pfnAdvanced(hDlg)) { HANDLE hEvent = CreateEvent(NULL, FALSE, FALSE, EVENTNAME_BACKLIGHTCHANGEEVENT); if (hEvent) { SetEvent(hEvent); CloseHandle(hEvent); } } } MyFreeLib(hAdvanced); return TRUE;

 

 

修改好的代码

http://download.csdn.net/source/3124542

 

你可能感兴趣的:(null,dll,WinCE)