windows-7

Python: Tkinter: How to change the windows border color?

南笙酒味 提交于 2019-12-24 12:19:25
问题 Every result I've gotten from searching this question up has to do with changing the border color for Tkinter widget's WITHIN the main app window, or changing the background color and stuff. What I'm looking to do is actually change the windows border color itself. Which I have marked in this picture here I read some stuff concerning 'Styles' but it didn't seem to be what I was looking for. Can anyone help point me to a tutorial for changing this, or explain how it can be done? Or if there is

How to use Windows 7 features in my simple .net application without any new API?

感情迁移 提交于 2019-12-24 12:15:58
问题 I want to use windows 7 features like icon overlay, and thumbnail tasks but my question is that can i do it without using any other API on just my plain .net 3.5. i recently enabled jumplists on an application in my c#.net 3.5 using the Shell routine so can something like that be done for icon overlay and other windows 7 taskbar features. And can old application like notepad which i am sure was made years ago use these new feaures? 回答1: I guess it depends on the meaning of "use". You get

How can you tell (programmatically) if large fonts are in use on a Windows 7 PC

久未见 提交于 2019-12-24 12:10:13
问题 I need to identify whether or not large fonts are in use on Windows 7 from within an app written in C++. Any assistance would be appreciated. 回答1: In MFC: void CTestFontDlg::OnBnClickedButton1() { CDC* pDC = GetDC(); int nRes = GetDeviceCaps(*pDC, LOGPIXELSY); } Normal font size = 96 (100%), medium (125%)= 120... 回答2: The Windows display settings (Control Panel\Appearance and Personalization\Display) affect the current number of dots per inch (DPI). There is in fact a way to get DPI

Segoe UI Symbol 5.9 on Windows 7

那年仲夏 提交于 2019-12-24 11:44:44
问题 I would like to use Segoe UI Symbol fonts, as described: http://msdn.microsoft.com/en-us/library/windows/apps/jj841126.aspx to provide icons for an application. This is a WPF application that will be deployed to Windows 7 and potentially 8. Windows 7 machines do not appear to have the same version of this font (5.0 vs. 5.9). I found a knowledge base article that claims to inject some of the missing things: http://support.microsoft.com/kb/2729094 But I still seem to be missing most or all of

windows 7 style for combobox on internet explorer toolbar, how?

这一生的挚爱 提交于 2019-12-24 11:35:34
问题 I'm developing an Internet Explorer toolbar and I want to place a combobox I create on my toolbar. HWND combobox1=CreateWindow(_T("COMBOBOX"), _T("combobox"), WS_BORDER | WS_VISIBLE | WS_CHILD | CBS_DROPDOWN, 10, 0, 200, 250, m_hWnd, (HMENU) NULL,NULL , NULL); And that works correctly, but the combobox is styled in the Windows Classic way, and I want to have it use the Windows Aero theme. I've tried this: #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows

Limits of Windows Queue Timers

℡╲_俬逩灬. 提交于 2019-12-24 11:15:05
问题 I am implementing a timer and need it to run every 50 ms or so and would like the resolution to be 1 ms or less. I started by reading these two articles: http://www.codeproject.com/Articles/1236/Timers-Tutorial http://www.virtualdub.org/blog/pivot/entry.php?id=272 Oddly enough they seem to contradict one another. One says queue timers are good for high resolution, the other posts results from a Windows 7 system showing resolution around 15ms (not good enough for my application). So I ran a

Building C# for Windows 7 32 bit platform on Windows 7 64 bit machine

老子叫甜甜 提交于 2019-12-24 11:09:23
问题 Whats the correct way to build the setup installers for a Windows Forms app to install and run on a Windows 7 32 bit machine, using Visual Studio 2010 on a Windows 7 64 bit machine ? I've just brushed the dust off a 3yr old Visual Studio 2008 app, built on Windows XP, using SQL Express 2005. I've updated it to VS2010, SQL Express 2008, and rebuilt it on a Windows 7 64 bit machine. It needs to run on a Windows 7 32 bit platform. The setup project for database keeps failing (on startup) when

Win 7: CMD batch file for creating directories based on filenames

萝らか妹 提交于 2019-12-24 10:58:41
问题 I'm working on a CMD line batch file in a Win7 environment that will create directories based upon the filenames listed in a directory. I am using this code, but the output created is partial and incomplete with only setlocal enabledelayedexpansion for /r %%i in (*.wav) do ( set filename1=%%i set folder1=!filename1:~4,10! mkdir !folder1! ) pause I have this script saved as a CMD file in text format in the source directory, on a local harddrive, though it is in a subdirectory. The directory

Gauge/measure CPU usage without TaskMgr?

倖福魔咒の 提交于 2019-12-24 10:57:56
问题 I'm trying to gauge the CPU utilization level during a long-running process. I suspect that everytime I run task-manager to view the data, the process' CPU utilization goes down because taskmanager has a higher priority. If I give my process RealTime priority, then task manager completely locks up and I cannot use it. I want most of my CPU cycles dedicated to this process, and I want to get a rough idea of how much it is utilizing. I don't need a second-by-second monitor, but just a few

Why can't my application receive UDP packets when the Windows Base Filtering Engine service is enabled?

我只是一个虾纸丫 提交于 2019-12-24 10:22:33
问题 Before starting, I just want to say that this situation works perfectly using TCP, without any problems - the issue is that I want to auto-detect devices on my network however, so I still need UDP to broadcast and detect devices over my network. I have a simple UDP broadcast/send/receive program running on my laptop and desktop, using UDP and SDL_Net, coded in C++. My desktop is running Linux, while my laptop is running Windows. The Linux machine can receive all UDP packets, while the Windows