wsprintf
can do some limited numeric conversions, but I'd generally advise against using it.
Although they're in the standard library instead of the Win32 API per se, I'd use std::to_string
if your compiler/library are new enough to include it, and strtol
otherwise.
For converting a number to a string, you can use a stringstream for hex, octal or decimal. For binary, you generally want to create a std::bitset
from the number first, then write that to the stream.