|
|
|
|
|
Total Hits: 75 | Today: 0
|
Author: T800G
|
Rating:
|
|

This article presents a simple class to make window snap to a desktop working area edges, just like the popular Winamp program. The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars (as stated in MSDN). To temporarily disable snapping while dragging the window, press and hold the snap modifier key (shift key by default). This article is reusing the code from the article Make it snappy by Peter Hesselberg, so it is recommended to read it ...
|
|
|
|
Total Hits: 44 | Today: 0
|
Author: Matt Pietrek
|
Rating:
|
|

This month I'll complete the overview of IA-64 (Itanium) parameter passing, stack frames, and return values that I began last month. In the previous column, I reviewed stack frames and how parameters are passed on the x86 CPU. I then examined the essential IA-64 registers that you'll need to know. If you're not familiar with the basic set of IA-64 registers (including the dynamic nature of the general-purpose registers), I suggest you read my previous column (see Under the Hood). To quickly revi...
|
|
|
|
Total Hits: 53 | Today: 0
|
Author: Paul DiLascia
|
Rating:
|
|

I'm developing a C++/MFC app that sometimes has to load a large file and I'd like to display a progress indicator like the one in the standard progress control. I saw another app that did this in the status bar, which I thought was cool. How can I add a progress bar to my status bar? I tried various ways, but none of them worked. I'm not sure exactly what you tried, but I was able to build a little demo app with a progress control in the status bar using a fairly straightforward approach. The id...
|
|
|
|
Total Hits: 38 | Today: 0
|
Author: Paul DiLascia
|
Rating:
|
|

I encountered a problem using your suggested approach to find the Internet Explorer_Server window as described in your September 2001 column. When using GetLastChild with an HTML page containing comboboxes, sometimes it returns the combobox instead of the Microsoft® Internet Explorer window. You can see in Spy++ that comboboxes are child windows of the Internet Explorer window, but sometimes OnNavigateComplete2 was called before these windows were created, which my program didn't account for. I ...
|
|
|
|
Total Hits: 35 | Today: 0
|
Author: Johan Nilsson
|
Rating:
|
|

The timestamps that you can obtain from Windows NT are limited to a maximum resolution of 10 or 15 milliseconds, depending on the underlying hardware. At times, such as when you need to timetag frequent events, it is desirable to achieve a higher resolution. For example, what if you want to be able to contact a thread or perform some other task at intervals more frequent than 10 milliseconds? Suggested ways of achieving better resolution include using performance counters in conjunction with the...
|
|
|
|
Total Hits: 23 | Today: 0
|
Author: Matt Pietrek
|
Rating:
|
|

With all the talk about Microsoft® .NET, it's easy to forget that another major new technology is coming to Windows® as well. I'm talking about 64-bit programming on Intel's IA-64 series of CPUs. In my next two columns, I'll look at the details of IA-64 parameter passing, stack frames, and return values. Don't worry if you haven't had the time to study the IA-64 architecture yet. You won't need to know all the gory details for what I'll be talking about, and I'll introduce just enough of the CPU...
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Matt Pietrek
|
Rating:
|
|

I'm really excited this month because the time has finally come to talk about programming for 64-bit Windows®. Since computers with Itanium processors won't be widely available in the year 2000, most of you won't be doing active development for 64-bit Windows when this column first appears. Nonetheless, when it comes to designing your next great software masterpiece, knowing what's coming down the pike is invaluable....
|
|
|
|
Total Hits: 5 | Today: 0
|
Author: Paul DiLascia
|
Rating:
|
|

In my February 2000 column in MSJ, a reader asked if there�s a way to determine how long a machine has been idle. I mentioned a new API function, GetLastInputInfo, that exists only on Windows NT® and Windows® 2000, and showed how you can use systemwide mouse and keyboard hooks to implement such a function for Windows 9x....
|
|
|
|
Total Hits: 8 | Today: 0
|
Author: sam242
|
Rating:
|
|

API Hooking is a popular topic on codeproject, and Ivo Avonov’s article provides an excellent overview of the many different approaches to API hooking you can take. Most of these approaches are rather complex (the mini hook engine includes a run-time disassembler !). This article will describe a new method that is much more straightforward than most current methods, and only 50 lines of code. Most of the approaches to API hooking are several years old at this point, and with Server 2003 and Vist...
|
|
|
|
Total Hits: 21 | Today: 0
|
Author: Bilal Haider
|
Rating:
|
|

A few months back, I was developing a desktop application for a client. After completing the requirements, I was enhancing the UI specially the main form. In the previous versions of Microsoft Word (before ver. 2007 ), there are some label which are clickable and reflect the changes to the keyboard (details below) and I wanted to add these features to my applications. HTML documentation of the code has also been included along the source in the zip file. Select the index.html in the HTML folder ...
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: Bean Software
|
Rating:
|
|

System registry is always seen as both a location for experts to do magnificent operations and as a source of trouble as well. You can virtually tune every aspect of every possible software piece on your system from system registry even those aspects that are not exposed using any user interface at all. This is all in addition to the thousands (not hundreds!) of other operations that are even not tuning and are much ahead the already complex tuning. If you can access registry from your applicati...
|
|
|
|
Total Hits: 42 | Today: 0
|
Author: Vishal Ganeriwala
|
Rating:
|
|

Have you ever tried to get the Client IP address for a Citrix or terminal services session and got stuck? I have had several emails asking me on how to do it. Well I thought I might just blog about it. I can think four ways to do it and if you can add to the list then please do via comments. So let's get to the business right away....
|
|
|
|
|
|