Calvin Hsia's WebLog

thoughts from a professional developer

Browse by Tags

Tagged Content List
  • Blog Post: 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 different kinds of disks (CD, network...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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 interface for Windows...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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 VS...
  • Blog Post: 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...
  • Blog Post: Foxpro Menu items, combo boxes not refreshing selected item under Aero in Vista

    If you’re running a Foxpro application under Vista when using Aero , you might encounter a problem when scrolling through lists, such as intellisense dropdowns, comboboxes, menus. As you move from one item in the list to the next, each item in turn appears to be selected (colors inverted), which...
  • Blog Post: Add a manifest to control your application Vista UAC behavior

    Try this on Windows XP or Vista (I don’t remember if manifests are allowed on Win2000: can someone confirm please? Thanks) Start Notepad, then choose File->Open and navigate to c:\windows\system32\notepad.exe and click Open. Hit Ctrl-F to find the text “assembly” You’ve now found the embedded...
  • Blog Post: Is this a Vista bug?

    A customer reported a crash of a VFP application while running under the new version of Windows: Vista. The customer code attempted to automate the configuration of the web server (See Automating Web Site Administration Using IIS ). Specifically, there was a scenario under which the user code calling...
Page 1 of 1 (13 items)