Showing results for October 2005 - Page 3 of 5 - The Old New Thing

Oct 17, 2005
0
0

The undeletable Outlook folder

Raymond Chen
Raymond Chen

For a while, I've had a few "undeletable Outlook folders". Even after deleting all the messages from them, Outlook just complains when I try to delete them. There was some sort of error message, but of course I didn't read it. The only option was OK, so I clicked it. As I recall, the message said something about "Can't delete because blah blah pe...

Tips/Support
Oct 14, 2005
0
0

Thread affinity of user interface objects, part 5: Object clean-up

Raymond Chen
Raymond Chen

The window manager and GDI objects as a general rule will automatically destroy objects created by a process when that process terminates. (The window manager also destroys windows when their owner threads exit.) Note, however, that this is a safety net and not an excuse for you to leak resources in your own program with the attitude of "Oh, it do...

Code
Oct 13, 2005
0
0

Thread affinity of user interface objects, part 4: GDI objects and other notes on affinity

Raymond Chen
Raymond Chen

GDI objects are much simpler. As a general rule, they all have process affinity: They can be used by any thread in the process that created them. If you use a GDI object from multiple threads, it is your responsibility to coordinate the object's use. Note that the window manager and GDI as a general rule keep their respective objects thread-safe....

Code
Oct 12, 2005
0
0

Newark Liberty International Airport Terminal A travel tips

Raymond Chen
Raymond Chen

The line for going through the security checkpoint at Terminal A of Newark Liberty International Airport splits into three lines after you get through the ID check. When you get to the decision point, they all look the same, but don't be fooled. ID / 3 ----------------------------------X >>>-----------|-- 2 --...

Non-Computer
Oct 12, 2005
0
0

Thread affinity of user interface objects, part 3: Menus, icons, cursors, and accelerator tables

Raymond Chen
Raymond Chen

The remaining user interface objects in common use are menus, icons, cursors, and accelerator tables. Menus do not have thread affinity. Any thread can use a menu. However, if two threads use a menu, it is the responsibility of those threads to coordinate among themselves how that menu will be used, so that one thread doesn't modify a menu while ...

Code
Oct 11, 2005
0
0

New blog on integrating Groove with Office

Raymond Chen
Raymond Chen

Andrew Wharton from Groove has started writing about integrating the team and its product with Office. His opening salvo sets the stage and hooked me in for what looks to be an interesting glimpse into life in another division at Microsoft. (Something that is as mysterious to me as it is to you.) In the early days of the Windows division, there...

Other
Oct 11, 2005
0
0

Thread affinity of user interface objects, part 2: Device contexts

Raymond Chen
Raymond Chen

Last time, we discussed briefly the thread affinity rules that govern window handles. Device contexts (DCs) also have a certain degree of thread affinity. The thread that calls functions such as must also be the one that calls , but as with window handles, during the lifetime of the DC, any thread can use it. If you choose to use a DC in a mul...

Code
Oct 10, 2005
0
0

The difficult balancing act between customization and supportability

Raymond Chen
Raymond Chen

My colleague Kam VedBrat (from who I shamelessly stole the pictures of thse high-DPI displays in my PDC talk) discusses the difficult balancing act between customization and supportability. (Part II.) Note that decisions on this subject also also impact compatibility: Windows Vista greatly expands the palette of objects covered by the visua...

Other