WinapiZone.net




Tutorials > WinAPI

Winapi tutorials

General

Tips and tricks
Tips and tricks about winapi in general.
Process "translations"
How to get process handle from process id, how to get window handle from process id, and so on.

Listview


How to display the sort order in the listview columns
How to display the sort order in the listview header in all Windows versions. It includes an up and down arrow if you need them :)

How to use groups in a listview
How to create and add items to it in a listview. Believe me, the MSDN docs for once aren't good enough.

Functions

Draw3dRect
This useful function is only available with MFC. Well, it was, now it's available in winapi too :)
GradientFill
This function is available under Windows 98 and superior, but it's bugged in Windows 98 and ME. Here's a manual algorithm that does the same thing without bugs.
IsCommonControlsVersion6
This function test if the application has included a manifest to load the version 6 of the common controls dll. Useful if you want to differentiate the aspect or the functionality of your window by checking if the window is using Windows XP themes or not.
LoadImageFromResource
This function can load any kind of image (jpeg, gif, png and so on) to a HBITMAP using OLE.


strprintf
The C++ version of sprintf.
trim
The C++ counterpart of the PHP function to eliminate spaces on the left and right of a string.
explode
This function is probably one of the most used in PHP. And here's its counterpart in C++.

This page was last modified 34 months, 4 weeks and 22 hours ago