Functions
Some useful functions for your c++ and winapi projects.
Winapi
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.
LoadImageFromResource
This function can load any kind of image (jpeg, gif, png and so on) to a HBITMAP using OLE.
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.
C/C++
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
40 months and 22 hours ago