Starting today 2.4.0.9 version number Cbox, prompted to detect the new version number, can be used after the update to the new version number, the hint table see the following example.
This upgrade is a mandatory upgrade. If you choose not to upgrade (click "Drop button" or "Close" in the upper-right corner of the upgrade prompt on the form). At this point the entire Cbox program will exit, causing Cbox to be unable to use.
Because it is mandatory, so there is no way to upgrade only, the result of the upgrade, the new version number of the Cbox (3.0 version number) is actually more difficult than the 2.4 version number. And the content is also very much less, and then the new version number of the interface effect is particularly ugly compared to 2.4. Really do not understand, CCTV do Cbox please is which company, incredibly cbox do more and more rotten, aesthetic concept serious problem, let alone user experience. The 2.4 version number interface with the 3.0 new version number interface is seen for example below.
2.4 Version Number interface
3.0 Version Number interface
So the version number of the 2.4 is still loaded back. But after the start to force upgrade Ah, do not upgrade will not be able to use. So try to find some ways to see the Cbox upgrade function to shield off. For example, if you have a configuration file that includes a version number or a registration form, change the version number directly to the latest (or a very large version number), but haven't found it for half a day. This includes displaying all the hidden files and C:\Documents and settings\xxxxx\application Data\cbox folders to find them. Then look at the installation folder is similar to the Updater.exe upgrade EXE file, assuming that there is a direct deletion, so that the Cbox did not send the version number of the test. It's very unfortunate. EXE also does not have, there is a Updater.dll dynamic library file, this file can not be deleted, because CBox.exe will rely on this library, if it is deleted, CBox.exe startup will be reported missing Updater.dll dynamic library files.
Try to get here, there is still no way to prevent the cbox of the mandatory upgrade. Is there no way out? After a careful look, the popup box is non-modal. The main form can still be manipulated.
So I thought of a slightly troublesome way. Now that you can capture the event that the user clicked to close and exit, I am not able to try to get a handle to the upgrade prompt form. Destroy the prompt form directly, so that it does not affect the use of cbox? So with the VC's own Spy + + tool caught the upgrade form of the class name (UpdateWindow) and title name (Update), then I can call the system API function EnumWindows. Enumerate all of the current forms, with the class name and title name of the upgrade prompt form, assuming the same. The corresponding handle is the handle to the upgrade prompt form. Send the WM_CLOSE message directly to the handle and close it directly.
Code to write a test, and sure enough to achieve the effect we want, upgrade prompt form destroyed, the main form can be used normally. The relevant code is seen in the following example:
BOOL CALLBACK Enumwindowsproc (HWND hwnd, //handle to Parent Windowlparam LParam //application-defined value) { TCHAR Achclassname[max_path] = {0};::getclassname (hwnd, Achclassname, sizeof (achclassname)/sizeof (TCHAR)); TCHAR Achwndtitle[max_path] = {0};::getwindowtext (hwnd, Achwndtitle, sizeof (Achwndtitle)/sizeof (TCHAR)); if (!_tcscmp (Achclassname, _t ("UpdateWindow")) &&!_tcscmp (Achwndtitle, _t ("Update"))) {:: SendMessage (hwnd, WM_CLOSE, 0, 0); int i = 0;} return TRUE;} void Ctestcboxwnddlg::onbnclickedbtntest () {:: EnumWindows (Enumwindowsproc, NULL);}
That would be a bit of a hassle. The upgrade prompt form will pop up every time you start Cbox, and then we'll need to start our tool software to destroy the upgrade prompt form. But there is no way to do that.
And then sometimes do not pay attention to click on the update, or do not use my computer to update me, so I have to manually replace the old version number. Inadvertently found a DuiLib.dll file under the Cbox installation folder. Haha, originally cbox use Duilib Library to implement. and the picture files and XML configuration files are in the \skin\default folder of the installation folder. To avoid clicking to update, We can change the visible property of the topmost layout in the corresponding update.xml in the hint form to false, so that although the upgrade prompt form is also displayed, the form has only a background picture, and the other button controls do not display anything, so you don't click to update the button. The contents of the Update.xml file, as seen below, have changed to a place:
<?XML version= "1.0" encoding= "Utf-8"? ><window size= "246,163" caption= "0,0,0,26" roundcorner= "3,3" showdirty= " False "> <font name=" Microsoft Ya Black "size="/> <font name= "Microsoft Ya Black" size= "/> <font" name= "Microsoft Jas Black" size= "14"/& Gt <font name= "Song Body" size= "bold=" true "/> <font name=" song Body "size=" "bold=" true "/> <font name=" song Body "size=" 1 2 "/> <font name=" song Body "size=" "bold=" true "/> <font name=" Microsoft Jas Black "size=" 8 "/> <default name=" Edit "Val Ue= "enabled=" false "bordercolor=" #FF000000 "bordersize=" 1 "font=" 8 "textcolor=" #FF666666 ""/> <default name= " Label "value=" align= "left" "/> <default name=" skinoption "value=" group= "Skin_group" maxwidth= "the" "" "align=" "left" textpadding= "46,0,0,0" normalimage= "file= ' uiitem.png" source= ' 0,0,13,13 ' dest= ' 22,3,35,16 ' "," selectedimage= ' file= ' Uiitem.png ' source= ' 13,0,26,13 ' dest= ' 22,3,35,16 ' "disabledimage=" file= ' uiitem.png ' source= ' 26,0,39,13 ' dest= ' 22,3,35,16 ' ""/> <verticallayout bkimage= "Update_Bk.png "visible=" false ">//change this place. Added visible= "false"
Finally attach the tool software interface to close the Cbox upgrade prompt form:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvy2hlbmx5y2x5/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
How to turn off the Cbox (2.4 version number) mandatory upgrade form