标签存档: technology

Vista按钮效果消失

昨天工程重新编译了一下,发现个奇怪的问题:原来的Vista 按钮效果突然消失了。
本来Vista的按钮的效果是:当鼠标滑过按钮区域的时候按钮的背景会被自动变成Vista的风格,按钮的大小和边角也有所改变。
可是不知为什么按钮就一直是Windows XP 的经典模式了。我开始以为自己改了控件的代码,于是开始用Beyond compare比了半天,甚至把修改的文件滚回原来,还是解决不了问题。

最后,问题居然出在被我疏忽的资源文件中*.rc. 资源文件中的唯一差别是大部分资源的定义DISCARDABLE都被转换成MOVEABLE PURE,这个项目一直是用VC 6.0开发的,前些天记得我曾经用Visual Studio 2005打开过,并且Vs进行过自动转换,但是我记得只是转换工程文件*.sln啊,怎么会把资源改掉呢。于是我重试了一次也没有发现资源文件被它改掉… …

Google了一会儿也没有什么发现,只是发现了简短的解释。

  • MOVEABLE
    Resource can be moved if necessary in order to compact memory.  
  • DISCARDABLE
    Resource can be discarded if no longer needed.  

不过这个解释似乎也说不通,为什么我自己加载的按钮效果还是正常的,而只有默认Vista风格的按钮才有问题?

Windows Vista – Troubleshooting Excessive CPU usage

Windows Vista – Troubleshooting Excessive CPU usage

    

This issue can be easily solved! Follow the the troubleshooting tips in this article, if there is an excessive CPU usage in your computer .

                       We have recently found out that lots of users are experiencing problems with processes using an excessive amount of CPU memory after the installation of some programs. Some of them are very easy to locate by looking at the task manager. But there are few, which are very difficult. We can locate them very easily, if we use the task manager and a command prompt in a more customized way.

We need to follow the following steps to resolve this kind of problems. The first few steps will actually tell us how to figure out what is causing the problem     . Let us take for example the problem encountered by SSDP Discovery causing an excessive CPU memory usage with SVCHOST.EXE

  1. Right click on Task bar and left Click on Task Manager
        
        
  2. Now please click on Processes tab
        
        
  3. Go to View and click on Select Columns.
        
        

        
  4. Now click on the check box that says ‘PID’ (Process Identifier)
        
        
  5. Then go back to Task Manager and click on the CPU memory in the top line (also make sure there is a checkmark in the box at the bottom that says ‘Show processes from all users’) – you may have to click CPU memory twice to get the processes that are using the most CPU memory at the top.
        
        
        
        
  6. Once you know the Process and its associated PID, you will need to open a command prompt – Go to Run and type in 'cmd' and in the command window type in ‘TASKLIST /SVC /FO LIST’ – it is not case sensitive. This will give you a list of all processes, their PID’s and the services that each one is controlling.
         Note: – Look for the process, which you want to remove (for example in this situation we are looking for svchost.exe), make a note of all the services running under it.
        
        
        
  7. Open up Services management console – go to Run and type in ‘services.msc’ – you will also need to have Task Manager open in this next part
        
  8. Once Services is open you need to search for the services that were running under svchost.exe – task list only lists the services' abbreviated name so to check from services just select a service that resembles the abbreviations, right click and select properties – right there at the top it will list the service name.
         Note: -You can eliminate any services that do not have 'Started' under the status column
  9. Right click on each of the suspected services and left click on Properties
        
        
  10. Click on 'Startup type' window and change it to 'Disabled'
        
        
  11. Click on the 'Stop' button
        
  12. Click on Apply now
         Note: -You may get a warning if this service is depended upon by another service – if you are sure it is safe to disable that service as well – click OK.
        
        
  13. Once you disable it, go back to Task Manager and check if the usage has decreased.
         Note : -If it is decreased, that means your problem is resolved. In case it's still the same, that means the problem is not with this process. Select the next largest Process and repeat the same steps.

Original Link:
http://www.zolved.com/synapse/view_content/23054/Windows_Vista_-_Troubleshooting_Excessive_CPU_usage

Canonical URL by SEO No Duplicate WordPress Plugin