It’s easy to resize your disk volumes on Vista

On one of my Vista machines, I have a 140G hard drive partitioned into C (20g), D (80G)  and E (40g). Drive E was getting full, and I wanted to make it bigger.   Isn’t it ironic that in the year 2007, we still are using letters of the alphabet to refer to all the…

1

DLL Image base addresses are the same in XP, different on Vista

When you start a program on your Windows XP computer, a process is created and several DLLs (Dynamic Link Libraries) are loaded into the process.   Some DLLs are “system” DLLs, such as Kernel32.dll, GDI32.dll, User32.dll.   These DLLs are loaded early in the process start time, because they provide basic operating system functionality, such…

5

Help->About->System Info doesn’t work on Vista

A customer (thanks Grady!) reported that choosing Help->About->System Info on Vista causes a MessageBox to display “Microsoft System Info cannot be found or run.”   Why is that?   Simple investigation: run Regedit on WinXP and Vista to inspect this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Msinfo   On Vista, the Type is REG_EXPAND_SZ  and the Path  is C:\Windows\system32\msinfo32.exe…

3

The VB version of the Flip Task Bar for Vista Desktop Window Manager

In this post: Create your own Flip Task Bar with live thumbnails using Vista Desktop Window Manager DWM, I showed Fox code on creating your own Flip Task bar   Here is the VB.Net version that does the same thing… File->New->Project->Visual Basic->Windows->Windows Forms Application View->Code   Paste and run the code below.     See…

4

What is Vista Aero?

I received a question regarding some of my recent posts on Vista:   Forgive my ignorance, but where is Vista Aero. I cannot find it in Vista Ultimate nor have I found it on the MS web pages     I’m sorry: I should have been more clear. Vista Aero is the new graphical user…

3

Create your own Flip Task Bar with live thumbnails using Vista Desktop Window Manager DWM

  The sample below uses Desktop Window Manager  under Windows Vista with Aero to get dynamic live thumbnails of running applications. If a movie is playing in Windows Media Player, it will play in the thumbnail too!   EnumChildWindows or EnumWindows is used to enumerate all running windows created by the various processes on your…

4

Vista Aero DWM seems to optimize out GDI paint calls

In this post: Foxpro Menu items, combo boxes not refreshing selected item under Aero in Vista I describe a problem in Foxpro where menu and list items that are supposed to be non-selected aren’t painted correctly. I described a workaround: call the GdiSetBatchLimit API, which limits the GDI paint functions that are batched. Apparently some…

7

Fun with Vista Aero using the DwmExtendFrameIntoClientArea

You can have a little fun with Vista Aero using the DwmExtendFrameIntoClientArea function.   This will cause the VFP border to paint the glass effect around the fox border   DECLARE integer DwmExtendFrameIntoClientArea  IN dwmapi integer hWnd, string  @ daMargins   cStr=REPLICATE(BINTOC(100,”4rs”),4) _screen.BackColor=0 _screen.ForeColor=-1 DwmExtendFrameIntoClientArea (_vfp.HWnd, @cStr) RETURN         For your own…

2

Windows Vista Aero BorderStyle Paint problem as non Administrator

Above is an image of an inner form (from the C++ project below) before and after I dragged it a little bit up and left to obscure the title bar, then back to the original position. You can see the title, icon, close/minimize buttons were not painted correctly. The same thing happens in Foxpro and…

9

Fix your forms to paint borders correctly under Vista Aero

Apparently, the borders of some forms don’t get painted correctly on Windows Vista.   When executing a Fox Form, Fox asks Windows to create a window, then sets the BorderStyle of the window. Apparently, under Vista Aero (except as Administrator), the BorderStyle cannot be set after the Window has been created.   To reproduce the…

15